- assert_equal "You are logged in as `#{other_user.display_name}' but the message you have asked to reply to was not sent to that user. Please login as the correct user in order to reply.", flash[:notice]
+ assert_equal "You are logged in as `#{other_user.display_name}' but the message you have asked to reply to was not sent to that user. Please login as the correct user in order to reply.", flash[:notice]
# Login as the right user
session_for(recipient_user)
# Login as the right user
session_for(recipient_user)
@@ -291,7+291,7 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest
- assert_equal "You are logged in as `#{other_user.display_name}' but the message you have asked to read was not sent by or to that user. Please login as the correct user in order to read it.", flash[:notice]
+ assert_equal "You are logged in as `#{other_user.display_name}' but the message you have asked to read was not sent by or to that user. Please login as the correct user in order to read it.", flash[:notice]
# Login as the message sender
session_for(user)
# Login as the message sender
session_for(user)
@@ -413,7+413,6 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest
# Asking to mark a message with no ID should fail
post message_mark_path
# Asking to mark a message with no ID should fail
post message_mark_path
- assert_response :redirect
assert_redirected_to inbox_messages_path
# Asking to mark a message with a bogus ID should fail
assert_redirected_to inbox_messages_path
# Asking to mark a message with a bogus ID should fail
@@ -464,7+463,6 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest
# Asking to destroy a message with no ID should fail
delete message_path
# Asking to destroy a message with no ID should fail
delete message_path
- assert_response :redirect
assert_redirected_to inbox_messages_path
# Asking to destroy a message with a bogus ID should fail
assert_redirected_to inbox_messages_path
# Asking to destroy a message with a bogus ID should fail
@@ -472,15+470,4 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest