diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index c9100f3d0..52283c795 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_test.rb @@ -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