Merge pull request #5018 from nonamethanks/deprecate-report-topic

Moderation Reports: deprecate the forum topic
This commit is contained in:
evazion
2022-02-28 14:43:49 -06:00
committed by GitHub
2 changed files with 0 additions and 53 deletions

View File

@@ -1,15 +0,0 @@
require 'test_helper'
class ModerationReportTest < ActiveSupport::TestCase
context "Moderation reports: " do
context "creating a moderation report" do
should "create a forum post" do
@dmail = create(:dmail)
@modreport = create(:moderation_report, model: @dmail, reason: "blah")
assert_equal(2, ForumPost.count)
assert_match(/blah/, ForumPost.last.body)
end
end
end
end