Skip to content

Commit

Permalink
Fix issue tests with xml payload - caused by https://www.redmine.org/…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Jan 31, 2024
1 parent f92c2ae commit a306835
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/integration/api_test/issues_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ class IssuesTest < Additionals::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
Expand All @@ -78,12 +78,12 @@ class IssuesTest < Additionals::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
Expand Down

0 comments on commit a306835

Please sign in to comment.