diff options
author | Kir Shatrov <shatrov@me.com> | 2015-01-03 19:42:49 +0100 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2015-01-03 20:16:06 +0100 |
commit | bb3c054358901e28a697643b1f76e0a29b68158e (patch) | |
tree | dc330cca1a446fc46dfbae05f18e8f03ad9584e0 /guides | |
parent | 1ffd1a305c51856da09dcac43781e7f2d1b6e633 (diff) | |
download | rails-bb3c054358901e28a697643b1f76e0a29b68158e.tar.gz rails-bb3c054358901e28a697643b1f76e0a29b68158e.tar.bz2 rails-bb3c054358901e28a697643b1f76e0a29b68158e.zip |
Avoid double negation in test guide
rails/rails#18305
Diffstat (limited to 'guides')
-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 |