Methods
Included Modules
Constants
| DummyApp | = | lambda { |env| [200, {"Content-Type" => "text/plain"}, ["Hello, World!"]] } |
Instance Public methods
public_path()
Link
setup()
Link
test_custom_handler_called_when_file_is_outside_root()
Link
# File actionpack/test/dispatch/static_test.rb, line 247 def test_custom_handler_called_when_file_is_outside_root filename = 'shared.html.erb' assert File.exist?(File.join(@root, '..', filename)) env = { "REQUEST_METHOD"=>"GET", "REQUEST_PATH"=>"/..%2F#{filename}", "PATH_INFO"=>"/..%2F#{filename}", "REQUEST_URI"=>"/..%2F#{filename}", "HTTP_VERSION"=>"HTTP/1.1", "SERVER_NAME"=>"localhost", "SERVER_PORT"=>"8080", "QUERY_STRING"=>"" } assert_equal(DummyApp.call(nil), @app.call(env)) end