Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redmine core tests failed with "Neutered Exception ActionView::Template::Error: No route matches" error #35

Open
sanak opened this issue Jul 10, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@sanak
Copy link
Member

sanak commented Jul 10, 2024

Problem
Currently, Redmine core tests failed, but it would be nice to pass the tests to ensure Redmine core operation.

Error:
RolesControllerTest#test_update_with_failure:
RuntimeError: Neutered Exception ActionView::Template::Error: No route matches {:action=>"index", :controller=>"custom_fields_groups", :id=>"1"}
    lib/redmine/menu_manager.rb:183:in `render_single_menu_node'
    lib/redmine/menu_manager.rb:127:in `render_menu_node'
    lib/redmine/menu_manager.rb:116:in `block in render_menu'
    lib/redmine/menu_manager.rb:199:in `block in menu_items_for'
    lib/redmine/menu_manager.rb:196:in `each'
    lib/redmine/menu_manager.rb:196:in `menu_items_for'
    lib/redmine/menu_manager.rb:115:in `render_menu'
    app/views/admin/_menu.html.erb:2
    app/views/layouts/admin.html.erb:4
    app/views/layouts/admin.html.erb:2
    app/controllers/roles_controller.rb:92:in `block (2 levels) in update'
    app/controllers/roles_controller.rb:91:in `update'
    lib/redmine/sudo_mode.rb:61:in `sudo_mode'
    test/functional/roles_controller_test.rb:231:in `test_update_with_failure'


rails test test/functional/roles_controller_test.rb:230

To Reproduce
Run bundle exec rails test.

Expectation
There should be no errors.

Platform:

  • OS: macOS Sonoma 14.5 (Apple Silicon)
  • Redmine: 5.1-stable
  • Ruby: 3.2.1
@sanak sanak added the bug Something isn't working label Jul 10, 2024
@sanak sanak self-assigned this Jul 10, 2024
@sanak
Copy link
Member Author

sanak commented Jul 10, 2024

Most of the errors were not reproducible by VSCode debug and one test or one file test by bundle exec rails test test/**/**.rb.
I will check the cause, later.

@sanak
Copy link
Member Author

sanak commented Jul 10, 2024

It seems to hit the following recent Redmine issue.

After removing plugins_test.rb, all tests passed except the following one.

Failure:
IssuesControllerTest#test_show_with_full_width_layout_custom_field_should_show_field_under_description [test/functional/issues_controller_test.rb:2824]:
Expected exactly 0 elements matching "div.attributes div.attribute.cf_28 div.value", found 1.
Expected: 0
  Actual: 1


rails test test/functional/issues_controller_test.rb:2808

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant