# File test/location_responder_test.rb, line 30 def test_redirects_to_block_location_on_success post :create assert_redirected_to 'given_location' end
# File test/location_responder_test.rb, line 40 def test_redirects_to_plain_string post :update assert_redirected_to 'given_location' end
# File test/location_responder_test.rb, line 35 def test_renders_page_on_fail post :create, fail: true assert @response.body.include?('new.html.erb') end