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