class TestAltApp

Constants

APP
AltRoutes

Public Instance Methods

app() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 3820
def app
  APP
end
test_alt_request_with_matched_header() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 3829
def test_alt_request_with_matched_header
  get "/", headers: { "HTTP_X_HEADER" => "HEADER" }
  assert_equal "XHeader", @response.body
end
test_alt_request_with_unmatched_header() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 3834
def test_alt_request_with_unmatched_header
  get "/", headers: { "HTTP_X_HEADER" => "NON_MATCH" }
  assert_equal "Alternative App", @response.body
end
test_alt_request_without_header() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 3824
def test_alt_request_without_header
  get "/"
  assert_equal "Alternative App", @response.body
end