[rspec-users] Stories - Use view matchers rather than assigns[].should?

Tim Haines tmhaines at gmail.com
Wed Apr 9 22:37:34 EDT 2008

Hi there,

Just want to confirm I have this right.  Writing a story,
assigns[:games].length.should == 30 fails for me complaining assigns[:games]
is nil.  It seems assigns isn't set for story steps?   I've changed this to
response.should have_tag(".game", 30).  Is this correct?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080410/e4021bd4/attachment.html 

More information about the rspec-users mailing list