Fix issue tests with xml payload - caused by https://www.redmine.org/issues/37249

This commit is contained in:
Alexander Meindl 2024-01-31 10:29:06 +01:00
parent f92c2aefe0
commit a306835fff

View File

@ -46,14 +46,14 @@ module ApiTest
issue_auto_assign: '0',
issue_auto_assign_status: ['1'],
issue_auto_assign_role: '1' 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>
<subject>API test</subject>
</issue>
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>
<subject>API test</subject>
</issue>
XML
assert_difference 'Issue.count' do
@ -78,12 +78,12 @@ module ApiTest
issue_auto_assign: '1',
issue_auto_assign_status: ['1'],
issue_auto_assign_role: '1' do
payload = <<-XML
<?xml version="1.0" encoding="UTF-8" ?>
<issue>
<project_id>1</project_id>
<subject>API test</subject>
</issue>
payload = <<~XML
<?xml version="1.0" encoding="UTF-8" ?>
<issue>
<project_id>1</project_id>
<subject>API test</subject>
</issue>
XML
assert_difference 'Issue.count' do