]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in test/functional/roles_controller_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 16:49:32 +0000 (16:49 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 16:49:32 +0000 (16:49 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19175 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/functional/roles_controller_test.rb

index 0bbf8cbde902231d55804393d2788b4cf3ad6a2f..850e0595a7d64c4b93c248768536b7269f2a2740 100644 (file)
@@ -15,7 +15,6 @@ Layout/AlignArguments:
     - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
     - 'test/functional/journals_controller_test.rb'
     - 'test/functional/my_controller_test.rb'
-    - 'test/functional/roles_controller_test.rb'
     - 'test/integration/api_test/attachments_test.rb'
     - 'test/integration/api_test/groups_test.rb'
     - 'test/integration/api_test/issue_relations_test.rb'
index 2bce1aa52a54ce3de5b33ea73a7f8704af68dab9..89d7c974e8b6cb5339ddc29dad957872232c666a 100644 (file)
@@ -69,8 +69,10 @@ class RolesControllerTest < Redmine::ControllerTest
 
     get :new
     assert_response :success
-    assert_equal %w(view_documents view_issues),
+    assert_equal(
+      %w(view_documents view_issues),
       css_select('input[name="role[permissions][]"][checked=checked]').map {|e| e.attr('value')}.sort
+    )
   end
 
   def test_new_with_copy