X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1d9e12b330b85897216583360b1a3439e601b7a9..95abc14b305f03de27352a252a451d1e0b200a4d:/test/controllers/message_controller_test.rb?ds=sidebyside diff --git a/test/controllers/message_controller_test.rb b/test/controllers/message_controller_test.rb index 05e3d3a13..ae71046c1 100644 --- a/test/controllers/message_controller_test.rb +++ b/test/controllers/message_controller_test.rb @@ -292,10 +292,10 @@ class MessageControllerTest < ActionController::TestCase assert_template "read" assert_equal false, Message.find(unread_message.id).message_read - # Login as the message recipient_user + # Login as the message recipient session[:user] = recipient_user.id - # Check that the message recipient_user can read the message + # Check that the message recipient can read the message get :read, :message_id => unread_message.id assert_response :success assert_template "read"