[rspec-users] specing nested models

Cezar Halmagean cezar at halmagean.ro
Mon Jan 24 06:33:46 EST 2011

So I am trying to spec a nested model / form like say Post has_many Comments 
and in order to build a nested form I need to build a new comment in 
@posts.comments like so:

@post = Post.new

Now, my question is: How do you go about correctly testing this ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110124/ffd480b3/attachment-0001.html>

More information about the rspec-users mailing list