##// END OF EJS Templates
Rails4: replace deprecated Relation#first with finder options at AttachmentTest...
Toshi MARUYAMA -
r12225:8a6f4c3880a5
parent child
Show More
@@ -214,8 +214,7 class AttachmentTest < ActiveSupport::TestCase
214 214 'description' => 'test'
215 215 })
216 216 end
217
218 attachment = Attachment.first(:order => 'id DESC')
217 attachment = Attachment.order('id DESC').first
219 218 assert_equal issue, attachment.container
220 219 assert_equal 'testfile.txt', attachment.filename
221 220 assert_equal 59, attachment.filesize
General Comments 0
You need to be logged in to leave comments. Login now