Rails4: replace deprecated Relation#first with finder options at ApiTest::IssueRelationsTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12597 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3480d46ff3
commit
b6d6325198
|
@ -53,7 +53,7 @@ class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base
|
|||
post '/issues/2/relations.xml', {:relation => {:issue_to_id => 7, :relation_type => 'relates'}}, credentials('jsmith')
|
||||
end
|
||||
|
||||
relation = IssueRelation.first(:order => 'id DESC')
|
||||
relation = IssueRelation.order('id DESC').first
|
||||
assert_equal 2, relation.issue_from_id
|
||||
assert_equal 7, relation.issue_to_id
|
||||
assert_equal 'relates', relation.relation_type
|
||||
|
|
Loading…
Reference in New Issue