Ruby on Rails で Capybara を使用して、すべてのフィールドに入力してフォームを送信する統合テストを作成しています。これにより、ブラウザに新しいページが読み込まれます。テストでこの 2 ページ目の応答を取得することは可能ですか?
describe "the signup process", :type => :request do
it "signs me in" do
visit sign_up_path
fill_in 'user_first_name', :with => "Jhonny"
t1 = Time.new
fill_in 'user_email', :with => "joe412@offerslot.com"
fill_in 'user_last_name', :with => "Bravo"
fill_in 'user_zip_code', :with => "94102"
fill_in 'user_password', :with => "password1234"
click_button 'user-button'
response.should be_success
response.body should_contain("Text on next page")
end
end