about summary refs log tree commit diff stats
path: root/test/mailers/vote_mailer_test.rb
blob: efe8236e2e74f9a70e0fa4aaeb1a458c74060068 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
require "test_helper"

class VoteMailerTest < ActionMailer::TestCase
  test "daily_report_email" do
    mail = VoteMailer.daily_report_email
    assert_equal "Daily report email", mail.subject
    assert_equal ["to@example.org"], mail.to
    assert_equal ["from@example.com"], mail.from
    assert_match "Hi", mail.body.encoded
  end

end