code cleanup: rubocop: fix Lint/NestedMethodDefinition in test/unit/lib/redmine/menu_manager/menu_helper_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18828 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-10-22 15:35:38 +00:00
parent f0a8ef42f6
commit c54761c690
2 changed files with 4 additions and 6 deletions

View File

@@ -29,8 +29,10 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
def setup
setup_with_controller
# Stub the current menu item in the controller
def current_menu_item
:index
self.class_eval do
def current_menu_item
:index
end
end
end