Namespace
Methods
S
T
Included Modules
Instance Public methods
setup()
# File actionpack/test/controller/integration_test.rb, line 590
def setup
  @app = Poller
end
test_failed_get()
# File actionpack/test/controller/integration_test.rb, line 602
def test_failed_get
  get "/failure"
  assert_response 404
  assert_response :not_found
  assert_equal '', response.body
end
test_generate_url_without_controller()
# File actionpack/test/controller/integration_test.rb, line 609
def test_generate_url_without_controller
  assert_equal 'http://www.example.com/foo', url_for(:controller => "foo")
end
test_pass_env()
# 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()
# 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
test_successful_get()
# File actionpack/test/controller/integration_test.rb, line 594
def test_successful_get
  get "/success"
  assert_response 200
  assert_response :success
  assert_response :ok
  assert_equal "Hello World!", response.body
end