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

@@ -379,10 +379,6 @@ Lint/Loop:
Exclude:
- 'lib/redmine/helpers/gantt.rb'
Lint/NestedMethodDefinition:
Exclude:
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
Lint/ParenthesesAsGroupedExpression:
Exclude:
- 'lib/redmine/field_format.rb'

View File

@@ -29,10 +29,12 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
def setup
setup_with_controller
# Stub the current menu item in the controller
self.class_eval do
def current_menu_item
:index
end
end
end
def test_render_single_menu_node
node = Redmine::MenuManager::MenuItem.new(:testing, '/test', { })