]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/IndentHeredoc in test/integration/api_test/issues_t...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 30 Sep 2019 10:59:01 +0000 (10:59 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 30 Sep 2019 10:59:01 +0000 (10:59 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18562 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index 353079134d91ba540ad527c4ff850b7a4912a75e..961d31898d1152a057e47b75fff1a61dfe5464fe 100644 (file)
@@ -267,7 +267,6 @@ Layout/IndentHeredoc:
     - 'test/helpers/application_helper_test.rb'
     - 'test/integration/api_test/custom_fields_attribute_test.rb'
     - 'test/integration/api_test/files_test.rb'
-    - 'test/integration/api_test/issues_test.rb'
     - 'test/integration/lib/redmine/hook_test.rb'
     - 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
     - 'test/unit/lib/redmine/unified_diff_test.rb'
index cd7b47b55a4844cb8825d13a83788f3f9625f09b..dbfb05debd58aca5866a137308c35944719cabd8 100644 (file)
@@ -581,23 +581,20 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
       :is_for_all => true,
       :trackers => Tracker.all.to_a
     )
-
-payload = <<-JSON
-{
-  "issue": {
-    "project_id": "1",
-    "subject": "Multivalued custom field",
-    "custom_field_values":{"#{field.id}":["V1","V3"]}
-  }
-}
-JSON
-
+    payload = <<~JSON
+      {
+        "issue": {
+          "project_id": "1",
+          "subject": "Multivalued custom field",
+          "custom_field_values":{"#{field.id}":["V1","V3"]}
+        }
+      }
+    JSON
     assert_difference('Issue.count') do
       post '/issues.json',
         :params => payload,
         :headers => {"CONTENT_TYPE" => 'application/json'}.merge(credentials('jsmith'))
     end
-
     assert_response :created
     issue = Issue.order('id DESC').first
     assert_equal ["V1", "V3"], issue.custom_field_value(field).sort