summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--test/integration/api_test/issues_test.rb21
2 files changed, 9 insertions, 13 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 353079134..961d31898 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -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'
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