diff options
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r-- | guides/source/testing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index 308d744d71..fac3f18eb9 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -1065,7 +1065,7 @@ class UserMailerTest < ActionMailer::TestCase # Send the email, then test that it got queued email = UserMailer.create_invite('me@example.com', 'friend@example.com', Time.now).deliver_now - assert_not ActionMailer::Base.deliveries.empty? + assert ActionMailer::Base.deliveries.present? # Test the body of the sent email contains what we expect it to assert_equal ['me@example.com'], email.from |