class LocationResponderTest

Public Instance Methods

test_redirects_to_block_location_on_success() click to toggle source
# File test/location_responder_test.rb, line 30
def test_redirects_to_block_location_on_success
  post :create
  assert_redirected_to 'given_location'
end
test_redirects_to_plain_string() click to toggle source
# File test/location_responder_test.rb, line 40
def test_redirects_to_plain_string
  post :update
  assert_redirected_to 'given_location'
end
test_renders_page_on_fail() click to toggle source
# 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