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

git-svn-id: http://svn.redmine.org/redmine/trunk@12578 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-10 01:21:07 +00:00
parent d852b8a4e6
commit 7c10f41ce3
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ class AttachmentsControllerTest < ActionController::TestCase
end
end
assert_nil Attachment.find_by_id(1)
j = Journal.first(:order => 'id DESC')
j = Journal.order('id DESC').first
assert_equal issue, j.journalized
assert_equal 'attachment', j.details.first.property
assert_equal '1', j.details.first.prop_key