Как отправить на другой контроллер, чем один тестовый скрипт в настоящее время указывает на пример?
. в user_controller_spec.rb
it "should just post to users" do
post :create, @params # this goes to the users controller
end
Я хочу сделать что-то вроде:
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: я не хочу настроить огурец