Namespace
Methods
A
T
Constants
Router = ActionDispatch::Routing::RouteSet.new
 
SprocketsApp = lambda { |env| [200, {"Content-Type" => "text/html"}, ["#{env["SCRIPT_NAME"]} -- #{env["PATH_INFO"]}"]] }
 
Instance Public methods
app()
# File actionpack/test/dispatch/mount_test.rb, line 31
def app
  Router
end
test_mounting_sets_script_name()
# File actionpack/test/dispatch/mount_test.rb, line 35
def test_mounting_sets_script_name
  get "/sprockets/omg"
  assert_equal "/sprockets -- /omg", response.body
end
test_mounting_with_shorthand()
# File actionpack/test/dispatch/mount_test.rb, line 45
def test_mounting_with_shorthand
  get "/shorthand/omg"
  assert_equal "/shorthand -- /omg", response.body
end
test_mounting_works_with_scope()
# File actionpack/test/dispatch/mount_test.rb, line 40
def test_mounting_works_with_scope
  get "/its_a/sprocket/omg"
  assert_equal "/its_a/sprocket -- /omg", response.body
end
test_with_fake_engine_does_not_call_invalid_method()
# File actionpack/test/dispatch/mount_test.rb, line 50
def test_with_fake_engine_does_not_call_invalid_method
  get "/fakeengine"
  assert_equal "OK", response.body
end