From 9237457518603e242ea3543c380e53153e4d23e8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 30 Sep 2019 10:58:50 +0000 Subject: code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in test/integration/api_test/issues_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18561 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/api_test/issues_test.rb | 46 +++++++++++++++----------------- 1 file changed, 21 insertions(+), 25 deletions(-) (limited to 'test/integration') 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, -- cgit v1.2.3