class TestOptionalRootSegments
Constants
- APP
- Routes
Public Instance Methods
app()
click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4476 def app APP end
test_optional_root_segments()
click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4482 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