Skip to content

Random failure #346

@tagliala

Description

@tagliala

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions