diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-30 10:58:50 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-30 10:58:50 +0000 |
commit | 9237457518603e242ea3543c380e53153e4d23e8 (patch) | |
tree | 7e003d5bcf7ea7b1179bf8ba4976c2d84e8e77ba /test/integration | |
parent | 4bd1cbfd7010fbdfcbc3c8dd8755f381de58e73c (diff) | |
download | redmine-9237457518603e242ea3543c380e53153e4d23e8.tar.gz redmine-9237457518603e242ea3543c380e53153e4d23e8.zip |
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
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/api_test/issues_test.rb | 46 |
1 files changed, 21 insertions, 25 deletions
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 -<?xml version="1.0" encoding="UTF-8" ?> -<issue> - <project_id>1</project_id> - <tracker_id>2</tracker_id> - <status_id>3</status_id> - <category_id>2</category_id> - <subject>API test</subject> -</issue> -XML - + payload = <<~XML + <?xml version="1.0" encoding="UTF-8" ?> + <issue> + <project_id>1</project_id> + <tracker_id>2</tracker_id> + <status_id>3</status_id> + <category_id>2</category_id> + <subject>API test</subject> + </issue> + 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, |