post replacement: don't send @mention dmails to replacer.

This commit is contained in:
evazion
2017-05-16 22:49:09 -05:00
parent a3db5ba346
commit 402caf6168
2 changed files with 6 additions and 2 deletions

View File

@@ -94,7 +94,11 @@ class PostReplacementTest < ActiveSupport::TestCase
assert_not_nil(comment)
assert_equal(User.system.id, comment.creator_id)
assert_match(/@#{@replacer.name} replaced this post/, comment.body)
assert_match(/replaced this post/, comment.body)
end
should "not send an @mention to the replacer" do
assert_equal(0, @replacer.dmails.size)
end
end