Namespace
Methods
- S
- T
Included Modules
- SharedTestRoutes
Instance Public methods
setup()
Link
test_failed_get()
Link
test_generate_url_without_controller()
Link
test_pass_env()
Link
# File actionpack/test/controller/integration_test.rb, line 620 def test_pass_env get "/success", {}, "HTTP_REFERER" => "http://test.com/", "HTTP_HOST" => "http://test.com" assert_equal "http://test.com", @request.env["HTTP_HOST"] assert_equal "http://test.com/", @request.env["HTTP_REFERER"] end
test_pass_headers()
Link
# File actionpack/test/controller/integration_test.rb, line 613 def test_pass_headers get "/success", {}, "Referer" => "http://www.example.com/foo", "Host" => "http://nohost.com" assert_equal "http://nohost.com", @request.env["HTTP_HOST"] assert_equal "http://www.example.com/foo", @request.env["HTTP_REFERER"] end