29
How do I post to a different controller than the one the test script is currently pointing at?
Example: in user_controller_spec.rb
it "should just post to users" do
post :create, @params # this goes to the users controller
end
I want to do something like:
it "should post to user and people to do some integration testing" do
post :create, @params # this goes to the users controller still
post 'people', :create, @params # this goes to the people controller
end
ps: i don't want to setup cucumber