mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 08:16:03 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user