[rspec-users] specing nested models
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...
More information about the rspec-users