X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/49c3af4a32b38eaebdd9f819bf288a9b80495c12..d86380e7b59ba6818553736c28e92d966b1b377c:/test/controllers/message_controller_test.rb 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"