mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 23:11:12 +00:00
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18538 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2e1da01790
commit
ea3c11bf32
@ -89,7 +89,6 @@ Layout/ClosingHeredocIndentation:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/setting.rb'
|
- 'app/models/setting.rb'
|
||||||
- 'test/helpers/application_helper_test.rb'
|
- 'test/helpers/application_helper_test.rb'
|
||||||
- 'test/integration/api_test/issues_test.rb'
|
|
||||||
- 'test/integration/lib/redmine/hook_test.rb'
|
- 'test/integration/lib/redmine/hook_test.rb'
|
||||||
- 'test/unit/lib/redmine/unified_diff_test.rb'
|
- 'test/unit/lib/redmine/unified_diff_test.rb'
|
||||||
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
|
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
|
||||||
|
|||||||
@ -905,8 +905,7 @@ JSON
|
|||||||
def test_create_issue_with_multiple_uploaded_files_as_xml
|
def test_create_issue_with_multiple_uploaded_files_as_xml
|
||||||
token1 = xml_upload('File content 1', credentials('jsmith'))
|
token1 = xml_upload('File content 1', credentials('jsmith'))
|
||||||
token2 = xml_upload('File content 2', credentials('jsmith'))
|
token2 = xml_upload('File content 2', credentials('jsmith'))
|
||||||
|
payload = <<~XML
|
||||||
payload = <<-XML
|
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<issue>
|
<issue>
|
||||||
<project_id>1</project_id>
|
<project_id>1</project_id>
|
||||||
@ -924,7 +923,6 @@ JSON
|
|||||||
</uploads>
|
</uploads>
|
||||||
</issue>
|
</issue>
|
||||||
XML
|
XML
|
||||||
|
|
||||||
assert_difference 'Issue.count' do
|
assert_difference 'Issue.count' do
|
||||||
post '/issues.xml',
|
post '/issues.xml',
|
||||||
:params => payload,
|
:params => payload,
|
||||||
@ -938,8 +936,7 @@ XML
|
|||||||
def test_create_issue_with_multiple_uploaded_files_as_json
|
def test_create_issue_with_multiple_uploaded_files_as_json
|
||||||
token1 = json_upload('File content 1', credentials('jsmith'))
|
token1 = json_upload('File content 1', credentials('jsmith'))
|
||||||
token2 = json_upload('File content 2', credentials('jsmith'))
|
token2 = json_upload('File content 2', credentials('jsmith'))
|
||||||
|
payload = <<~JSON
|
||||||
payload = <<-JSON
|
|
||||||
{
|
{
|
||||||
"issue": {
|
"issue": {
|
||||||
"project_id": "1",
|
"project_id": "1",
|
||||||
@ -952,7 +949,6 @@ XML
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
JSON
|
JSON
|
||||||
|
|
||||||
assert_difference 'Issue.count' do
|
assert_difference 'Issue.count' do
|
||||||
post '/issues.json',
|
post '/issues.json',
|
||||||
:params => payload,
|
:params => payload,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user