Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #14120 from gregmolnar/guides

change 'assert !' to 'assert_not' in guides [ci skip]
  • Loading branch information...
commit c77337c2cdbbafe1b6c444473ef40de7d76d0cb8 1 parent 980cdd3
Carlos Antonio da Silva carlosantoniodasilva authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 guides/source/
6 guides/source/
@@ -248,7 +248,7 @@ To see how a test failure is reported, you can add a failing test to the `post_t
test "should not save post without title" do
post =
- assert !
+ assert_not
@@ -272,7 +272,7 @@ In the output, `F` denotes a failure. You can see the corresponding trace shown
test "should not save post without title" do
post =
- assert !, "Saved the post without a title"
+ assert_not, "Saved the post without a title"
@@ -943,7 +943,7 @@ class UserMailerTest < ActionMailer::TestCase
# Send the email, then test that it got queued
email = UserMailer.create_invite('',
- assert !ActionMailer::Base.deliveries.empty?
+ assert_not ActionMailer::Base.deliveries.empty?
# Test the body of the sent email contains what we expect it to
assert_equal [''], email.from
Please sign in to comment.
Something went wrong with that request. Please try again.