blacklist some funding sources

This commit is contained in:
2016-06-04 14:39:16 +02:00
parent cb77ce5921
commit 96982e47a7
3 changed files with 29 additions and 10 deletions
+10
View File
@@ -0,0 +1,10 @@
require 'spec_helper'
describe Cmtool::ContactForm do
it "is invalid with Funded.com in email or body" do
build(:contact_form).should be_valid
build(:contact_form, email: "fundingteam+url.com@getbusinessfunded.com").should_not be_valid
build(:contact_form, body: "fundingteam+url.com@getbusinessFunded.com").should_not be_valid
end
end