]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/IndentHeredoc and Layout/IndentationConsistency...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 11:13:25 +0000 (11:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 11:13:25 +0000 (11:13 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18649 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/integration/api_test/custom_fields_attribute_test.rb

index 0a24819d299d5d6833655e3234f679b98ce33f0c..48be0377074bb5b4c43797103c9556c38ec2df2e 100644 (file)
@@ -270,7 +270,6 @@ Layout/IndentFirstHashElement:
 Layout/IndentHeredoc:
   Exclude:
     - 'test/helpers/application_helper_test.rb'
-    - 'test/integration/api_test/custom_fields_attribute_test.rb'
     - 'test/integration/api_test/files_test.rb'
     - 'test/integration/lib/redmine/hook_test.rb'
     - 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
@@ -285,7 +284,6 @@ Layout/IndentHeredoc:
 # SupportedStyles: normal, indented_internal_methods
 Layout/IndentationConsistency:
   Exclude:
-    - 'test/integration/api_test/custom_fields_attribute_test.rb'
     - 'test/mocks/open_id_authentication_mock.rb'
 
 # Cop supports --auto-correct.
index f434d3c46e119837f10c10f2777453921a2dc570..04ab05c2f3fc3bdf5e5ac77b12e4321ed98e38ff 100644 (file)
@@ -81,14 +81,12 @@ class Redmine::ApiTest::CustomFieldsAttributeTest < Redmine::ApiTest::Base
       :possible_values => ["V1", "V2", "V3"],
       :default_value => "V2"
     )
-
-payload = <<-JSON
-{"group": {"name":"Foooo",
-"custom_field_values":{"#{field.id}":["V1","V3"]}
-}
-}
-JSON
-
+    payload = <<~JSON
+      {"group": {"name":"Foooo",
+      "custom_field_values":{"#{field.id}":["V1","V3"]}
+      }
+      }
+    JSON
     post '/groups.json',
       :params => payload,
       :headers => {