]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/functional/settings_cont...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:44:18 +0000 (05:44 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:44:18 +0000 (05:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19239 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/functional/settings_controller_test.rb

index 82c105443868a1256dc6ae121b29d8906643a931..d24b0ad69a8b01e82a3b1efd4c7d93efa1908186 100644 (file)
@@ -156,7 +156,6 @@ Layout/IndentFirstArrayElement:
     - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
     - 'test/functional/auth_sources_controller_test.rb'
     - 'test/functional/repositories_mercurial_controller_test.rb'
-    - 'test/functional/settings_controller_test.rb'
     - 'test/helpers/activities_helper_test.rb'
     - 'test/helpers/issues_helper_test.rb'
     - 'test/unit/issue_test.rb'
index faf5f2aaeb5d867381924b23c861527b8f488e61..56eedc28334dff7d2ef86be245d3b59ab6d1586d 100644 (file)
@@ -141,10 +141,14 @@ class SettingsControllerTest < Redmine::ControllerTest
       }
     }
     assert_redirected_to '/settings'
-    assert_equal([
-      {"keywords" => "resolves", "status_id" => "3"},
-      {"keywords" => "closes", "status_id" => "5", "done_ratio" => "100", "if_tracker_id" => "2"}
-    ], Setting.commit_update_keywords)
+    assert_equal(
+      [
+        {"keywords" => "resolves", "status_id" => "3"},
+        {"keywords" => "closes", "status_id" => "5",
+         "done_ratio" => "100", "if_tracker_id" => "2"}
+      ],
+      Setting.commit_update_keywords
+    )
   end
 
   def test_post_edit_with_invalid_setting_should_not_error