diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-10 01:21:07 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-10 01:21:07 +0000 |
commit | 7c10f41ce398b393f7a09ea25e9b51184f59106d (patch) | |
tree | 7f07a9cd84fc7c4eee2338e9d987cf90b2530869 | |
parent | d852b8a4e6df1df7024130fa35ce480ddd7306f5 (diff) | |
download | redmine-7c10f41ce398b393f7a09ea25e9b51184f59106d.tar.gz redmine-7c10f41ce398b393f7a09ea25e9b51184f59106d.zip |
Rails4: replace deprecated Relation#first with finder options at AttachmentsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12578 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/attachments_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index 44abadd10..77a1a076c 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -339,7 +339,7 @@ class AttachmentsControllerTest < ActionController::TestCase end end assert_nil Attachment.find_by_id(1) - j = Journal.first(:order => 'id DESC') + j = Journal.order('id DESC').first assert_equal issue, j.journalized assert_equal 'attachment', j.details.first.property assert_equal '1', j.details.first.prop_key |