diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 10:33:07 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 10:33:07 -0500 |
commit | 9681897e9ace534c4559fa9be20aa86af1a42e13 (patch) | |
tree | 85fbe155f6d1db7f8e232dac40be109fa066f9ed /test/mailers/vote_mailer_test.rb | |
parent | de217df62df5725450ba7fd0084a00a8ebe24599 (diff) | |
download | thoughts-9681897e9ace534c4559fa9be20aa86af1a42e13.tar.gz thoughts-9681897e9ace534c4559fa9be20aa86af1a42e13.tar.bz2 thoughts-9681897e9ace534c4559fa9be20aa86af1a42e13.zip |
Add daily upvote email like AO3 kudos
Diffstat (limited to 'test/mailers/vote_mailer_test.rb')
-rw-r--r-- | test/mailers/vote_mailer_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/mailers/vote_mailer_test.rb b/test/mailers/vote_mailer_test.rb new file mode 100644 index 0000000..efe8236 --- /dev/null +++ b/test/mailers/vote_mailer_test.rb | |||
@@ -0,0 +1,12 @@ | |||
1 | require "test_helper" | ||
2 | |||
3 | class VoteMailerTest < ActionMailer::TestCase | ||
4 | test "daily_report_email" do | ||
5 | mail = VoteMailer.daily_report_email | ||
6 | assert_equal "Daily report email", mail.subject | ||
7 | assert_equal ["to@example.org"], mail.to | ||
8 | assert_equal ["from@example.com"], mail.from | ||
9 | assert_match "Hi", mail.body.encoded | ||
10 | end | ||
11 | |||
12 | end | ||