GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 50c829ca authored by marutosijp's avatar marutosijp

Rails4: replace deprecated Relation#first with finder options at IssueTest

git-svn-id: https://svn.redmine.org/redmine/trunk@12549 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 563ad929
......@@ -154,7 +154,7 @@ class IssueTest < ActiveSupport::TestCase
assert Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1,
:subject => 'Group assignment',
:assigned_to_id => 11).save
issue = Issue.first(:order => 'id DESC')
issue = Issue.order('id DESC').first
assert_kind_of Group, issue.assigned_to
assert_equal Group.find(11), issue.assigned_to
end
......@@ -1783,7 +1783,7 @@ class IssueTest < ActiveSupport::TestCase
end
end
detail = JournalDetail.first(:order => 'id DESC')
detail = JournalDetail.order('id DESC').first
assert_equal i, detail.journal.journalized
assert_equal 'attr', detail.property
assert_equal 'description', detail.prop_key
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment