summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/issue_relations_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/api_test/issue_relations_test.rb')
-rw-r--r--test/integration/api_test/issue_relations_test.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/integration/api_test/issue_relations_test.rb b/test/integration/api_test/issue_relations_test.rb
index 16235c6e8..bfbac149a 100644
--- a/test/integration/api_test/issue_relations_test.rb
+++ b/test/integration/api_test/issue_relations_test.rb
@@ -40,9 +40,11 @@ class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base
test "POST /issues/:issue_id/relations.xml should create the relation" do
assert_difference('IssueRelation.count') do
- post '/issues/2/relations.xml',
+ post(
+ '/issues/2/relations.xml',
:params => {:relation => {:issue_to_id => 7, :relation_type => 'relates'}},
:headers => credentials('jsmith')
+ )
end
relation = IssueRelation.order('id DESC').first
@@ -57,9 +59,11 @@ class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base
test "POST /issues/:issue_id/relations.xml with failure should return errors" do
assert_no_difference('IssueRelation.count') do
- post '/issues/2/relations.xml',
+ post(
+ '/issues/2/relations.xml',
:params => {:relation => {:issue_to_id => 7, :relation_type => 'foo'}},
:headers => credentials('jsmith')
+ )
end
assert_response :unprocessable_entity