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
This commit is contained in:
Toshi MARUYAMA 2014-01-11 09:24:40 +00:00
parent a313d540a6
commit 378a3e684f
1 changed files with 1 additions and 1 deletions

View File

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