summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/issues_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-30 10:59:01 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-30 10:59:01 +0000
commitb3955c935edab7cc61aa53b3b726017ba8a55697 (patch)
tree7269436a8e333235d6c9e10f74b97c9308d5d352 /test/integration/api_test/issues_test.rb
parent9237457518603e242ea3543c380e53153e4d23e8 (diff)
downloadredmine-b3955c935edab7cc61aa53b3b726017ba8a55697.tar.gz
redmine-b3955c935edab7cc61aa53b3b726017ba8a55697.zip
code cleanup: rubocop: fix Layout/IndentHeredoc in test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18562 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/issues_test.rb')
-rw-r--r--test/integration/api_test/issues_test.rb21
1 files changed, 9 insertions, 12 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index cd7b47b55..dbfb05deb 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -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