nested create action

0 views
Skip to first unread message

benji

unread,
Jun 22, 2010, 5:59:31 AM6/22/10
to shoulda
How to call a create action on a nested resource with shoulda?

The following code does not actual work - the end_user_id won't be
used as the id for my parent resource.

/blog_items_controller_test.rb

post :create, :blog_item => {:id =>
blog_items(:blog_item_one).id}, :end_user_id =>
end_users(:end_user_two).id, :format => "xml"

Any ideas?
Reply all
Reply to author
Forward
0 new messages