mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -482,8 +482,7 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
|
||||
end
|
||||
|
||||
test "POST /issues.xml should create an issue with the attributes" do
|
||||
|
||||
payload = <<-XML
|
||||
payload = <<~XML
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<issue>
|
||||
<project_id>1</project_id>
|
||||
@@ -493,7 +492,6 @@ payload = <<-XML
|
||||
<subject>API test</subject>
|
||||
</issue>
|
||||
XML
|
||||
|
||||
assert_difference('Issue.count') do
|
||||
post '/issues.xml',
|
||||
:params => payload,
|
||||
@@ -539,8 +537,7 @@ XML
|
||||
end
|
||||
|
||||
test "POST /issues.json should create an issue with the attributes" do
|
||||
|
||||
payload = <<-JSON
|
||||
payload = <<~JSON
|
||||
{
|
||||
"issue": {
|
||||
"project_id": "1",
|
||||
@@ -551,7 +548,6 @@ payload = <<-JSON
|
||||
}
|
||||
}
|
||||
JSON
|
||||
|
||||
assert_difference('Issue.count') do
|
||||
post '/issues.json',
|
||||
:params => payload,
|
||||
|
||||
Reference in New Issue
Block a user