-
-
Save nicedawg/f03b344103e4a4f66370fe668b8be576 to your computer and use it in GitHub Desktop.
[Beginning Rails 6] Listing 16-20. Fixing DraftArticlesMailerTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test_helper' | |
class DraftArticlesMailerTest < ActionMailer::TestCase | |
test "no_author" do | |
mail = DraftArticlesMailer.no_author('to@example.org') | |
assert_equal "Your email could not be processed", mail.subject | |
assert_equal ["to@example.org"], mail.to | |
assert_equal ["from@example.com"], mail.from | |
assert_match "Please check your draft articles email address and try again.", mail.body.encoded | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment