Enable Turbo Drive with morphing for Messages#{destroy,mark}
This commit is contained in:
parent
f0af7d3cff
commit
1a7b7f5d18
13 changed files with 42 additions and 63 deletions
|
@ -408,15 +408,13 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest
|
|||
assert_not Message.find(unread_message.id).message_read
|
||||
|
||||
# Check that the marking a message read via XHR works
|
||||
post message_mark_path(:message_id => unread_message, :mark => "read"), :xhr => true
|
||||
assert_response :success
|
||||
assert_template "mark"
|
||||
post message_mark_path(:message_id => unread_message, :mark => "read")
|
||||
assert_response :see_other
|
||||
assert Message.find(unread_message.id).message_read
|
||||
|
||||
# Check that the marking a message unread via XHR works
|
||||
post message_mark_path(:message_id => unread_message, :mark => "unread"), :xhr => true
|
||||
assert_response :success
|
||||
assert_template "mark"
|
||||
post message_mark_path(:message_id => unread_message, :mark => "unread")
|
||||
assert_response :see_other
|
||||
assert_not Message.find(unread_message.id).message_read
|
||||
|
||||
# Asking to mark a message with no ID should fail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue