]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#first with finder options at WikiControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 09:24:40 +0000 (09:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 09:24:40 +0000 (09:24 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12635 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/wiki_controller_test.rb

index 83c0f7de98ee57810d5b3902bfc717afad7684b9..ee9d1e5d1a47e6767346f3b503b71120a89a83ec 100644 (file)
@@ -953,7 +953,7 @@ class WikiControllerTest < ActionController::TestCase
                      'description' => 'test file'}
            }
     end
-    attachment = Attachment.first(:order => 'id DESC')
+    attachment = Attachment.order('id DESC').first
     assert_equal Wiki.find(1).find_page('CookBook_documentation'), attachment.container
   end
 end