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
This commit is contained in:
Toshi MARUYAMA
2019-09-30 10:59:01 +00:00
parent 9237457518
commit b3955c935e
2 changed files with 9 additions and 13 deletions

View 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