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:
@@ -379,10 +379,6 @@ Lint/Loop:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/redmine/helpers/gantt.rb'
|
- 'lib/redmine/helpers/gantt.rb'
|
||||||
|
|
||||||
Lint/NestedMethodDefinition:
|
|
||||||
Exclude:
|
|
||||||
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
|
|
||||||
|
|
||||||
Lint/ParenthesesAsGroupedExpression:
|
Lint/ParenthesesAsGroupedExpression:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/redmine/field_format.rb'
|
- 'lib/redmine/field_format.rb'
|
||||||
|
|||||||
@@ -29,10 +29,12 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
|
|||||||
def setup
|
def setup
|
||||||
setup_with_controller
|
setup_with_controller
|
||||||
# Stub the current menu item in the controller
|
# Stub the current menu item in the controller
|
||||||
|
self.class_eval do
|
||||||
def current_menu_item
|
def current_menu_item
|
||||||
:index
|
:index
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_render_single_menu_node
|
def test_render_single_menu_node
|
||||||
node = Redmine::MenuManager::MenuItem.new(:testing, '/test', { })
|
node = Redmine::MenuManager::MenuItem.new(:testing, '/test', { })
|
||||||
|
|||||||
Reference in New Issue
Block a user