diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index cd8cf53e4..353079134 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -183,7 +183,6 @@ Layout/EmptyLinesAroundBlockBody: - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' - 'test/functional/issues_controller_test.rb' - 'test/integration/api_test/attachments_test.rb' - - 'test/integration/api_test/issues_test.rb' - 'test/integration/api_test/my_test.rb' # Cop supports --auto-correct. diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb index 787076c26..cd7b47b55 100644 --- a/test/integration/api_test/issues_test.rb +++ b/test/integration/api_test/issues_test.rb @@ -482,18 +482,16 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base end test "POST /issues.xml should create an issue with the attributes" do - -payload = <<-XML - - - 1 - 2 - 3 - 2 - API test - -XML - + payload = <<~XML + + + 1 + 2 + 3 + 2 + API test + + XML assert_difference('Issue.count') do post '/issues.xml', :params => payload, @@ -539,19 +537,17 @@ XML end test "POST /issues.json should create an issue with the attributes" do - -payload = <<-JSON -{ - "issue": { - "project_id": "1", - "tracker_id": "2", - "status_id": "3", - "category_id": "2", - "subject": "API test" - } -} -JSON - + payload = <<~JSON + { + "issue": { + "project_id": "1", + "tracker_id": "2", + "status_id": "3", + "category_id": "2", + "subject": "API test" + } + } + JSON assert_difference('Issue.count') do post '/issues.json', :params => payload,