views:

23

answers:

0

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?