Don't send @mention dmails when updating forum after approving BURs.

This commit is contained in:
evazion
2017-11-15 14:59:52 -06:00
parent f2351766c6
commit b5d602836c
4 changed files with 16 additions and 5 deletions

View File

@@ -134,6 +134,12 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
@post.reload
assert_match(/\[REJECTED\]/, @topic.title)
end
should "not send @mention dmails to the approver" do
assert_no_difference("Dmail.count") do
@req.approve!(@admin)
end
end
end
context "when searching" do