テストスクリプトが現在指しているコントローラとは別のコントローラに投稿するにはどうすればよいですか?rspecテストで別のコントローラに投稿
例:
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:私のような何かをしたい
it "should just post to users" do
post :create, @params # this goes to the users controller
end
user_controller_spec.rbで iはセットアップキュウリにしたくない
awesome!私のためにとてもうまく動作します。 – Tilo
私はどのコントローラーが当っているかチェックしたいと思っていましたが、これは少し助けました。 –