summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-08-07 12:43:48 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-08-07 12:43:48 +0000
commit9f8c78865424fb7b908dd77dfc289227b22fbc43 (patch)
tree28764d4ab8b1dcb7b02b24a50df2c59f24e1e754
parent9be307d3216abde9b6fd5f90519ba94f54c7478b (diff)
downloadredmine-9f8c78865424fb7b908dd77dfc289227b22fbc43.tar.gz
redmine-9f8c78865424fb7b908dd77dfc289227b22fbc43.zip
fix source indent of test/integration/api_test/issue_relations_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19956 e93f8b46-1217-0410-a6f0-8f06a7374b81
-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