Methods
A
T
Included Modules
Constants
Routes = routes
 
APP = build_app Routes
 
Instance Public methods
app()
# File actionpack/test/dispatch/routing_test.rb, line 4542
def app
  APP
end
test_route_defaults_are_not_required_for_url_for()
# File actionpack/test/dispatch/routing_test.rb, line 4556
def test_route_defaults_are_not_required_for_url_for
  assert_equal '/projects/1', url_for(controller: 'projects', action: 'show', id: 1, only_path: true)
end
test_route_options_are_required_for_url_for()
# File actionpack/test/dispatch/routing_test.rb, line 4548
def test_route_options_are_required_for_url_for
  assert_raises(ActionController::UrlGenerationError) do
    assert_equal '/posts/1', url_for(controller: 'posts', action: 'show', id: 1, only_path: true)
  end

  assert_equal '/posts/1', url_for(controller: 'posts', action: 'show', id: 1, bucket_type: 'post', only_path: true)
end