easy unsubscribe baked into emails

This commit is contained in:
Kyle Drake 2015-01-07 15:24:15 -08:00
parent 39ce179d16
commit be0267956b
6 changed files with 91 additions and 3 deletions

View file

@ -18,6 +18,9 @@ describe EmailWorker do
mail.from.first.must_equal 'from@example.com'
mail.to.first.must_equal 'to@example.com'
mail.subject.must_equal 'Hello World'
mail.body.to_s.must_equal 'testing'
body = mail.body.to_s
puts body
body.must_match /testing/
body.must_match /unsubscribe/
end
end