Use named paths for messages

This commit is contained in:
Andy Allan 2018-05-09 11:24:11 +08:00
parent 52f0ba78ea
commit 011cfa794a
9 changed files with 19 additions and 23 deletions

View file

@ -178,6 +178,7 @@ class MessageControllerTest < ActionController::TestCase
assert_equal "[OpenStreetMap] Test Message", e.subject
assert_match /Test message body/, e.text_part.decoded
assert_match /Test message body/, e.html_part.decoded
assert_match %r{#{SERVER_URL}/message/read/}, e.text_part.decoded
ActionMailer::Base.deliveries.clear
m = Message.last
assert_equal user.id, m.from_user_id