From 378a3e684faec7471fa92ae1cebf624ffaf91121 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jan 2014 09:24:40 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#first with finder options at WikiControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12635 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/wiki_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 83c0f7de9..ee9d1e5d1 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -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