mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 06:46:01 +01:00
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:
@@ -267,7 +267,6 @@ Layout/IndentHeredoc:
|
|||||||
- 'test/helpers/application_helper_test.rb'
|
- 'test/helpers/application_helper_test.rb'
|
||||||
- 'test/integration/api_test/custom_fields_attribute_test.rb'
|
- 'test/integration/api_test/custom_fields_attribute_test.rb'
|
||||||
- 'test/integration/api_test/files_test.rb'
|
- 'test/integration/api_test/files_test.rb'
|
||||||
- 'test/integration/api_test/issues_test.rb'
|
|
||||||
- 'test/integration/lib/redmine/hook_test.rb'
|
- 'test/integration/lib/redmine/hook_test.rb'
|
||||||
- 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
|
- 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
|
||||||
- 'test/unit/lib/redmine/unified_diff_test.rb'
|
- 'test/unit/lib/redmine/unified_diff_test.rb'
|
||||||
|
|||||||
@@ -581,23 +581,20 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
|
|||||||
:is_for_all => true,
|
:is_for_all => true,
|
||||||
:trackers => Tracker.all.to_a
|
:trackers => Tracker.all.to_a
|
||||||
)
|
)
|
||||||
|
payload = <<~JSON
|
||||||
payload = <<-JSON
|
{
|
||||||
{
|
|
||||||
"issue": {
|
"issue": {
|
||||||
"project_id": "1",
|
"project_id": "1",
|
||||||
"subject": "Multivalued custom field",
|
"subject": "Multivalued custom field",
|
||||||
"custom_field_values":{"#{field.id}":["V1","V3"]}
|
"custom_field_values":{"#{field.id}":["V1","V3"]}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
JSON
|
JSON
|
||||||
|
|
||||||
assert_difference('Issue.count') do
|
assert_difference('Issue.count') do
|
||||||
post '/issues.json',
|
post '/issues.json',
|
||||||
:params => payload,
|
:params => payload,
|
||||||
:headers => {"CONTENT_TYPE" => 'application/json'}.merge(credentials('jsmith'))
|
:headers => {"CONTENT_TYPE" => 'application/json'}.merge(credentials('jsmith'))
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_response :created
|
assert_response :created
|
||||||
issue = Issue.order('id DESC').first
|
issue = Issue.order('id DESC').first
|
||||||
assert_equal ["V1", "V3"], issue.custom_field_value(field).sort
|
assert_equal ["V1", "V3"], issue.custom_field_value(field).sort
|
||||||
|
|||||||
Reference in New Issue
Block a user