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

git-svn-id: http://svn.redmine.org/redmine/trunk@12500 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-08 02:49:09 +00:00
parent 89b5518e0b
commit 8a6f4c3880
1 changed files with 1 additions and 2 deletions

View File

@ -214,8 +214,7 @@ class AttachmentTest < ActiveSupport::TestCase
'description' => 'test'
})
end
attachment = Attachment.first(:order => 'id DESC')
attachment = Attachment.order('id DESC').first
assert_equal issue, attachment.container
assert_equal 'testfile.txt', attachment.filename
assert_equal 59, attachment.filesize