Re: [rspec-users] rails associations

2008-11-26 Thread David Parker
Nick Hoffman wrote: > > Hi David. To write specs for ActiveRecord associations, I find Matthew > Heidemann's #stub_association! extremely helpful. There was a > discussion about it last week, actually: >http://www.ruby-forum.com/topic/171076 > > I hope that helps. Cheers, > Nick That's actua

Re: [rspec-users] rails associations

2008-11-25 Thread David Parker
ntirely understand what I'm doing, so if someone can explain it or point me to a good blog article, I'd greatly appreciate it. Like I said before though, I've looked around and read over the documentation several times, but for some reason, my mind just isn't grasping the associati

[rspec-users] rails associations

2008-11-25 Thread David Parker
;new'' You have a nil object when you didn't expect it! I'm sure that speccing associations can't be that bad... I just don't really know what to look for. Dave, I can't wait for your book to come out! Thanks for the help! David Parker ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Scope and specing models

2007-08-13 Thread David Parker
On 8/12/07, David Parker <[EMAIL PROTECTED]> wrote: > Hello all, I'm currently having an issue with some specs, specifically scope > issues (probably more of a scope issue than a spec issue at this point)... > Here's the error: > ActiveRecord::AssociationTypeMismatch

[rspec-users] Scope and specing models

2007-08-12 Thread David Parker
Hello all, I'm currently having an issue with some specs, specifically scope issues (probably more of a scope issue than a spec issue at this point)... Here's the error: ActiveRecord::AssociationTypeMismatch in 'A new User should know what role it has' Role expected, got NilClass D:/ruby/projects/r

[rspec-users] How to spec a model method

2007-08-10 Thread David Parker
Still new to Specs... How do I create a spec to test a model method? Specifically, here is my spec: #testing model describe User do it "should have many user roles" do User.reflect_on_association(:user_roles).should_not be_nil end it "should have many roles though user roles" do Use

[rspec-users] rspec with autotest on a windows machine

2007-08-08 Thread David Parker
Scott, Yes, my spec.opts file contains the following: --colour --format progress --loadby mtime --reverse Thoughts? If this seems like too much of a hassle, or unknown, I should say that I plan on "upgrading" my windows machine to Ubuntu Linux in the next week or two... Thanks, Da

[rspec-users] rspec with autotest on a windows machine

2007-08-08 Thread David Parker
Hello all, I'm new to rSpec but after reading a couple of tutorials I've become enamored. Anyway, I am at minute 42 of the rSpec basics screencast ( peepcode.com) and I'm having the following error running autotest w/rSpec: D:\ruby\projects\forecaster>autotest loading autotest/rails_rspec c:\ruby\