mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 07:41:52 +02:00
easy unsubscribe baked into emails
This commit is contained in:
parent
39ce179d16
commit
be0267956b
6 changed files with 91 additions and 3 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue