@@ -214,8 +214,7 class AttachmentTest < ActiveSupport::TestCase | |||||
214 | 'description' => 'test' |
|
214 | 'description' => 'test' | |
215 | }) |
|
215 | }) | |
216 | end |
|
216 | end | |
217 |
|
217 | attachment = Attachment.order('id DESC').first | ||
218 | attachment = Attachment.first(:order => 'id DESC') |
|
|||
219 | assert_equal issue, attachment.container |
|
218 | assert_equal issue, attachment.container | |
220 | assert_equal 'testfile.txt', attachment.filename |
|
219 | assert_equal 'testfile.txt', attachment.filename | |
221 | assert_equal 59, attachment.filesize |
|
220 | assert_equal 59, attachment.filesize |
General Comments 0
You need to be logged in to leave comments.
Login now