diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 10:13:05 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 10:13:05 +0000 |
commit | b47fc8f61831819a4b170ce5fafc08553fbf6508 (patch) | |
tree | f0ba60d89e87fa0d0e328ff28427c95ec9a68f08 /test/functional/messages_controller_test.rb | |
parent | 190bb9af30481bb3cbae3f7c193379495b97efbc (diff) | |
download | redmine-b47fc8f61831819a4b170ce5fafc08553fbf6508.tar.gz redmine-b47fc8f61831819a4b170ce5fafc08553fbf6508.zip |
Rails4: replace deprecated Relation#first with finder options at MessagesControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12639 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/messages_controller_test.rb')
-rw-r--r-- | test/functional/messages_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb index a8000ca1b..c78828b52 100644 --- a/test/functional/messages_controller_test.rb +++ b/test/functional/messages_controller_test.rb @@ -59,7 +59,7 @@ class MessagesControllerTest < ActionController::TestCase assert_template 'show' replies = assigns(:replies) assert_not_nil replies - assert !replies.include?(message.children.first(:order => 'id')) + assert !replies.include?(message.children.order('id').first) assert replies.include?(message.children.order('id').last) end |