diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 09:24:40 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 09:24:40 +0000 |
commit | 378a3e684faec7471fa92ae1cebf624ffaf91121 (patch) | |
tree | 34190694fe7c70bfc34cf7d30eacf83ef5f745dc /test/functional/wiki_controller_test.rb | |
parent | a313d540a66dcbee7123c59105dae8b8548955cd (diff) | |
download | redmine-378a3e684faec7471fa92ae1cebf624ffaf91121.tar.gz redmine-378a3e684faec7471fa92ae1cebf624ffaf91121.zip |
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
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |