mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
change 'assert !' to 'assert_not' in guides [ci skip]
This commit is contained in:
parent
25ce856c3e
commit
fa8d35b4eb
1 changed files with 3 additions and 3 deletions
|
@ -248,7 +248,7 @@ To see how a test failure is reported, you can add a failing test to the `post_t
|
||||||
```ruby
|
```ruby
|
||||||
test "should not save post without title" do
|
test "should not save post without title" do
|
||||||
post = Post.new
|
post = Post.new
|
||||||
assert !post.save
|
assert_not post.save
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -272,7 +272,7 @@ In the output, `F` denotes a failure. You can see the corresponding trace shown
|
||||||
```ruby
|
```ruby
|
||||||
test "should not save post without title" do
|
test "should not save post without title" do
|
||||||
post = Post.new
|
post = Post.new
|
||||||
assert !post.save, "Saved the post without a title"
|
assert_not post.save, "Saved the post without a title"
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -943,7 +943,7 @@ class UserMailerTest < ActionMailer::TestCase
|
||||||
# Send the email, then test that it got queued
|
# Send the email, then test that it got queued
|
||||||
email = UserMailer.create_invite('me@example.com',
|
email = UserMailer.create_invite('me@example.com',
|
||||||
'friend@example.com', Time.now).deliver
|
'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
|
# Test the body of the sent email contains what we expect it to
|
||||||
assert_equal ['me@example.com'], email.from
|
assert_equal ['me@example.com'], email.from
|
||||||
|
|
Loading…
Reference in a new issue