From bb3c054358901e28a697643b1f76e0a29b68158e Mon Sep 17 00:00:00 2001 From: Kir Shatrov Date: Sat, 3 Jan 2015 19:42:49 +0100 Subject: Avoid double negation in test guide rails/rails#18305 --- guides/source/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') 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 -- cgit v1.2.3