diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 04:32:00 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 04:32:00 +0000 |
commit | 848edf35faea65845d49509c98592cdc3fb8e84f (patch) | |
tree | 923c8f747cacd626f81557eb22f4b06a3459a3df | |
parent | 6204bcb34ef4facee858061e8eecdf24f488d4b3 (diff) | |
download | redmine-848edf35faea65845d49509c98592cdc3fb8e84f.tar.gz redmine-848edf35faea65845d49509c98592cdc3fb8e84f.zip |
Rails4: replace deprecated Relation#first with finder options at DocumentsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12507 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/documents_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/documents_controller_test.rb b/test/functional/documents_controller_test.rb index 7fb7bdaf7..ea247ac01 100644 --- a/test/functional/documents_controller_test.rb +++ b/test/functional/documents_controller_test.rb @@ -180,7 +180,7 @@ LOREM post :add_attachment, :id => 1, :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}} end - attachment = Attachment.first(:order => 'id DESC') + attachment = Attachment.order('id DESC').first assert_equal Document.find(1), attachment.container end end |