Methods
A
T
Included Modules
Constants
Routes = routes
 
Instance Public methods
app()
# File actionpack/test/dispatch/routing_test.rb, line 2851
def app
  Routes
end
test_optional_root_segments()
# File actionpack/test/dispatch/routing_test.rb, line 2857
def test_optional_root_segments
  get '/'
  assert_equal 'pages#index', @response.body
  assert_equal '/', root_path

  get '/page/1'
  assert_equal 'pages#index', @response.body
  assert_equal '1', @request.params[:page]
  assert_equal '/page/1', root_path('1')
  assert_equal '/page/1', root_path(:page => '1')
end