mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user