Skip to content

Commit 7977908

Browse files
authored
Merge pull request rails#53204 from kabirpathak/update-testing-guide-to-use-assert-not
Update testing guide to use `assert_not` instead of `refute` [skip ci]
2 parents ff42150 + b0ea504 commit 7977908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,7 @@ class BillingJobTest < ActiveJob::TestCase
22242224
assert_raises(InsufficientFundsError) do
22252225
BillingJob.new(empty_account, product).perform
22262226
end
2227-
refute account.reload.charged_for?(product)
2227+
assert_not account.reload.charged_for?(product)
22282228
end
22292229
end
22302230
```

0 commit comments

Comments
 (0)