summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/functional/messages_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb
index d6e7da9a8..a8000ca1b 100644
--- a/test/functional/messages_controller_test.rb
+++ b/test/functional/messages_controller_test.rb
@@ -54,13 +54,13 @@ class MessagesControllerTest < ActionController::TestCase
:board_id => 1)
end
end
- get :show, :board_id => 1, :id => 1, :r => message.children.last(:order => 'id').id
+ get :show, :board_id => 1, :id => 1, :r => message.children.order('id').last.id
assert_response :success
assert_template 'show'
replies = assigns(:replies)
assert_not_nil replies
assert !replies.include?(message.children.first(:order => 'id'))
- assert replies.include?(message.children.last(:order => 'id'))
+ assert replies.include?(message.children.order('id').last)
end
def test_show_with_reply_permission