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