summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 08:38:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 08:38:36 +0000
commitb6d6325198130308f7bb928c317d34d8dbbad43d (patch)
tree9d1a0440a9db67585a661ef0397d67bf3c515b78 /test
parent3480d46ff36946d4263c4244368f21a4229810a9 (diff)
downloadredmine-b6d6325198130308f7bb928c317d34d8dbbad43d.tar.gz
redmine-b6d6325198130308f7bb928c317d34d8dbbad43d.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/integration/api_test/issue_relations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/issue_relations_test.rb b/test/integration/api_test/issue_relations_test.rb
index e11010330..58d21c4e9 100644
--- a/test/integration/api_test/issue_relations_test.rb
+++ b/test/integration/api_test/issue_relations_test.rb
@@ -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