]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/BlockAlignment in test/unit/lib/redmine/menu_manage...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 15 Oct 2019 12:11:00 +0000 (12:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 15 Oct 2019 12:11:00 +0000 (12:11 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18683 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/unit/lib/redmine/menu_manager/menu_helper_test.rb

index 297906f8a4efd6a5dcd29604bf70e900fe57947b..9688ab1139ff19e5e943a03ef3e943aff49c085c 100644 (file)
@@ -57,7 +57,6 @@ Layout/BlockAlignment:
     - 'app/models/principal.rb'
     - 'app/models/project.rb'
     - 'app/models/time_entry.rb'
-    - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
 
 # Cop supports --auto-correct.
 Layout/BlockEndNewline:
index 1c4799dd5b32e64e29d4036d8a6df8ea59feed98..16eb41a11b9432da9db956d3eb1b66a84ed10f4b 100644 (file)
@@ -213,7 +213,6 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
   end
 
   def test_render_empty_virtual_menu_node_with_children
-
     # only empty item with no click target
     Redmine::MenuManager.map :menu1 do |menu|
       menu.push(:parent_node, nil, { })
@@ -221,9 +220,12 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
 
     # parent with unallowed unattached child
     Redmine::MenuManager.map :menu2 do |menu|
-      menu.push(:parent_node, nil, {:children => Proc.new {|p|
-         [Redmine::MenuManager::MenuItem.new("test_child_unallowed", {:controller => 'issues', :action => 'new'}, {})]
-       } })
+      menu.push(:parent_node, nil,
+                {:children => Proc.new {|p|
+                                [Redmine::MenuManager::MenuItem.new("test_child_unallowed",
+                                                                    {:controller => 'issues',
+                                                                     :action => 'new'}, {})]
+                              }})
     end
 
     # parent with unallowed standard child