]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#first with finder options at AttachmentsControlle...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 01:21:07 +0000 (01:21 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 01:21:07 +0000 (01:21 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12578 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/attachments_controller_test.rb

index 44abadd10656a39444bc444edc9d3a5ba55e05a6..77a1a076c1c9e181f7c3bfe78bf9e21e2e1b54d2 100644 (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