Skip to content

Commit 055572e

Browse files
committed
Correct documentation of assert_emails
1 parent 68e107f commit 055572e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

actionmailer/lib/action_mailer/test_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ module TestHelper
3232
# end
3333
# end
3434
#
35-
# If a block is passed, the method returns the +Mail::Message+s that were
36-
# processed, enabling further analysis.
35+
# The method returns the +Mail::Message+s that were processed, enabling further
36+
# analysis.
3737
#
3838
# def test_emails_more_thoroughly
3939
# email = assert_emails 1 do
4040
# ContactMailer.welcome.deliver_now
4141
# end
42-
# assert_email "Hi there", email.subject
42+
# assert_equal "Hi there", email.subject
4343
#
4444
# emails = assert_emails 2 do
4545
# ContactMailer.welcome.deliver_now
4646
# ContactMailer.welcome.deliver_later
4747
# end
48-
# assert_email "Hi there", emails.first.subject
48+
# assert_equal "Hi there", emails.first.subject
4949
# end
5050
def assert_emails(number, &block)
5151
if block_given?

0 commit comments

Comments
 (0)