diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-07 03:42:12 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-07 03:42:12 +0000 |
commit | 2d7e8b6a7047edcf32c22507165af773b5991f09 (patch) | |
tree | 815c1153e787294689477ce5e1fdc2cf31aa020d /test/unit | |
parent | b7a2acd45d4261569191b39c20261ab0efeb7180 (diff) | |
download | redmine-2d7e8b6a7047edcf32c22507165af773b5991f09.tar.gz redmine-2d7e8b6a7047edcf32c22507165af773b5991f09.zip |
cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/menu_manager/menu_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18932 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/menu_manager/menu_helper_test.rb | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb index da680362c..c73df554c 100644 --- a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb +++ b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb @@ -94,20 +94,21 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest def test_render_menu_node_with_children User.current = User.find(2) - - parent_node = Redmine::MenuManager::MenuItem.new(:parent_node, - '/test', - { - :children => Proc.new {|p| - children = [] - 3.times do |time| - children << Redmine::MenuManager::MenuItem.new("test_child_#{time}", - {:controller => 'issues', :action => 'index'}, - {}) - end - children - } - }) + parent_node = Redmine::MenuManager::MenuItem.new( + :parent_node, + '/test', + { + :children => Proc.new {|p| + children = [] + 3.times do |time| + children << Redmine::MenuManager::MenuItem.new( + "test_child_#{time}", + {:controller => 'issues', :action => 'index'}, + {}) + end + children + } + }) @output_buffer = render_menu_node(parent_node, Project.find(1)) assert_select("li") do @@ -135,18 +136,20 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest } }) - parent_node << Redmine::MenuManager::MenuItem.new(:child_node, - {:controller => 'issues', :action => 'index'}, - { - :children => Proc.new {|p| - children = [] - 6.times do |time| - children << Redmine::MenuManager::MenuItem.new("test_dynamic_child_#{time}", {:controller => 'issues', :action => 'index'}, {}) - end - children - } - }) - + parent_node << Redmine::MenuManager::MenuItem.new( + :child_node, + {:controller => 'issues', :action => 'index'}, + { + :children => + Proc.new {|p| + children = [] + 6.times do |time| + children << Redmine::MenuManager::MenuItem.new( + "test_dynamic_child_#{time}", {:controller => 'issues', :action => 'index'}, {}) + end + children + } + }) @output_buffer = render_menu_node(parent_node, Project.find(1)) assert_select("li") do |