From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 05:44:18 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/functional/settings_cont... X-Git-Tag: 4.2.0~1401 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b30e155d07f11c9420026d163cc9c479887be408;p=redmine.git cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/functional/settings_controller_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19239 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 82c105443..d24b0ad69 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb index faf5f2aae..56eedc283 100644 --- a/test/functional/settings_controller_test.rb +++ b/test/functional/settings_controller_test.rb @@ -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