Namespace
Methods
A
T
Constants
Routes = ActionDispatch::Routing::RouteSet.new.tap do |app| app.draw do scope module: 'test_path_parameters' do scope ':locale', locale: /en|ar/ do root to: 'home#index' get '/about', to: 'pages#about' end end get ':controller(/:action/(:id))' end end
 
APP = build_app Routes
 
Instance Public methods
app()
# File actionpack/test/dispatch/routing_test.rb, line 4820
def app; APP end
test_path_parameters_are_not_mutated()
# File actionpack/test/dispatch/routing_test.rb, line 4822
def test_path_parameters_are_not_mutated
  get '/en/about'
  assert_equal "/ar | /ar/about", @response.body
end