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:
Toshi MARUYAMA 2014-01-10 08:38:36 +00:00
parent 3480d46ff3
commit b6d6325198
1 changed files with 1 additions and 1 deletions

View File

@ -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