mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 06:46:01 +01:00
code cleanup: rubocop: fix Layout/IndentHeredoc and Layout/IndentationConsistency in test/integration/api_test/custom_fields_attribute_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18649 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -270,7 +270,6 @@ Layout/IndentFirstHashElement:
|
|||||||
Layout/IndentHeredoc:
|
Layout/IndentHeredoc:
|
||||||
Exclude:
|
Exclude:
|
||||||
- '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/files_test.rb'
|
- 'test/integration/api_test/files_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'
|
||||||
@@ -285,7 +284,6 @@ Layout/IndentHeredoc:
|
|||||||
# SupportedStyles: normal, indented_internal_methods
|
# SupportedStyles: normal, indented_internal_methods
|
||||||
Layout/IndentationConsistency:
|
Layout/IndentationConsistency:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'test/integration/api_test/custom_fields_attribute_test.rb'
|
|
||||||
- 'test/mocks/open_id_authentication_mock.rb'
|
- 'test/mocks/open_id_authentication_mock.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
|||||||
@@ -81,14 +81,12 @@ class Redmine::ApiTest::CustomFieldsAttributeTest < Redmine::ApiTest::Base
|
|||||||
:possible_values => ["V1", "V2", "V3"],
|
:possible_values => ["V1", "V2", "V3"],
|
||||||
:default_value => "V2"
|
:default_value => "V2"
|
||||||
)
|
)
|
||||||
|
payload = <<~JSON
|
||||||
payload = <<-JSON
|
|
||||||
{"group": {"name":"Foooo",
|
{"group": {"name":"Foooo",
|
||||||
"custom_field_values":{"#{field.id}":["V1","V3"]}
|
"custom_field_values":{"#{field.id}":["V1","V3"]}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
JSON
|
JSON
|
||||||
|
|
||||||
post '/groups.json',
|
post '/groups.json',
|
||||||
:params => payload,
|
:params => payload,
|
||||||
:headers => {
|
:headers => {
|
||||||
|
|||||||
Reference in New Issue
Block a user