mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-21 02:52:03 +00: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:
parent
9be307d321
commit
9f8c788654
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user