dmcas: dmail copy of complaint to owner user.

This commit is contained in:
evazion
2022-10-12 03:34:05 -05:00
parent 879243d8f1
commit 49d0842f00
2 changed files with 21 additions and 0 deletions

View File

@@ -20,9 +20,14 @@ class DmcasControllerTest < ActionDispatch::IntegrationTest
signature: "John Doe",
}
create(:owner_user)
post dmca_path, params: { dmca: dmca }
assert_response :success
assert_emails 2
assert_equal("DMCA Complaint from John Doe", Dmail.last.title)
assert_match(/test@example.com/, Dmail.last.body)
assert_match(%r{https://example\.com/1\.html}, Dmail.last.body)
end
end
end