aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorGreg Molnar <molnargerg@gmail.com>2014-02-20 14:04:53 +0100
committerGreg Molnar <molnargerg@gmail.com>2014-02-20 14:04:53 +0100
commitfa8d35b4eb06b09444ba525f84738043df7aac9f (patch)
treeb12a5b745b83f9e7d584afab65fb8cca9e301982 /guides
parent25ce856c3ea8beb864994b4b13df07b48574df9b (diff)
downloadrails-fa8d35b4eb06b09444ba525f84738043df7aac9f.tar.gz
rails-fa8d35b4eb06b09444ba525f84738043df7aac9f.tar.bz2
rails-fa8d35b4eb06b09444ba525f84738043df7aac9f.zip
change 'assert !' to 'assert_not' in guides [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/testing.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 07f3aad1e6..aa37115d14 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -248,7 +248,7 @@ To see how a test failure is reported, you can add a failing test to the `post_t
```ruby
test "should not save post without title" do
post = Post.new
- assert !post.save
+ assert_not post.save
end
```
@@ -272,7 +272,7 @@ In the output, `F` denotes a failure. You can see the corresponding trace shown
```ruby
test "should not save post without title" do
post = Post.new
- assert !post.save, "Saved the post without a title"
+ assert_not post.save, "Saved the post without a title"
end
```
@@ -943,7 +943,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
- 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 ['me@example.com'], email.from