diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-14 11:13:25 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-14 11:13:25 +0000 |
commit | b9d215c656ac9d14560e90b5332f905e32d1bd6f (patch) | |
tree | 6a34d39740e14b5d739c98b7a246e5a7781d6fbb | |
parent | 0cf19f967ae2bc65abddbce00a3be1e73774d0da (diff) | |
download | redmine-b9d215c656ac9d14560e90b5332f905e32d1bd6f.tar.gz redmine-b9d215c656ac9d14560e90b5332f905e32d1bd6f.zip |
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
-rw-r--r-- | .rubocop_todo.yml | 2 | ||||
-rw-r--r-- | test/integration/api_test/custom_fields_attribute_test.rb | 14 |
2 files changed, 6 insertions, 10 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0a24819d2..48be03770 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -270,7 +270,6 @@ Layout/IndentFirstHashElement: Layout/IndentHeredoc: Exclude: - 'test/helpers/application_helper_test.rb' - - 'test/integration/api_test/custom_fields_attribute_test.rb' - 'test/integration/api_test/files_test.rb' - 'test/integration/lib/redmine/hook_test.rb' - 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb' @@ -285,7 +284,6 @@ Layout/IndentHeredoc: # SupportedStyles: normal, indented_internal_methods Layout/IndentationConsistency: Exclude: - - 'test/integration/api_test/custom_fields_attribute_test.rb' - 'test/mocks/open_id_authentication_mock.rb' # Cop supports --auto-correct. diff --git a/test/integration/api_test/custom_fields_attribute_test.rb b/test/integration/api_test/custom_fields_attribute_test.rb index f434d3c46..04ab05c2f 100644 --- a/test/integration/api_test/custom_fields_attribute_test.rb +++ b/test/integration/api_test/custom_fields_attribute_test.rb @@ -81,14 +81,12 @@ class Redmine::ApiTest::CustomFieldsAttributeTest < Redmine::ApiTest::Base :possible_values => ["V1", "V2", "V3"], :default_value => "V2" ) - -payload = <<-JSON -{"group": {"name":"Foooo", -"custom_field_values":{"#{field.id}":["V1","V3"]} -} -} -JSON - + payload = <<~JSON + {"group": {"name":"Foooo", + "custom_field_values":{"#{field.id}":["V1","V3"]} + } + } + JSON post '/groups.json', :params => payload, :headers => { |