-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Description
For some reasons,
if
rake test TESTOPTS="-n/test_path_translated_while_generate_unlocalized_routes/"
is being executed as the first test, it fails.
It is related to config generate_unlocalized_routes: true
Run bundle exec rake test
Run options: --seed 31884
# Running:
F
Failure:
GeneratedPathTest#test_path_translated_while_generate_unlocalized_routes [test/integration/generated_path_test.rb:46]:
Expected response to be a <2XX: success>, but was a <500: Internal Server Error>
Exception while processing request: ArgumentError: Invalid route name, already in use: 'blorgh'
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here:
https://guides.rubyonrails.org/routing.html#restricting-the-routes-created
config/routes.rb:23:in `block (2 levels) in <top (required)>'
config/routes.rb:6:in `block in <top (required)>'
config/routes.rb:3:in `<top (required)>'
Response body:
bin/rails test /home/runner/work/route_translator/route_translator/test/integration/generated_path_test.rb:41
Metadata
Metadata
Assignees
Labels
No labels