1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix string interpolation in testing guide

This commit is contained in:
Victor Hiairrassary 2022-06-17 19:38:57 +02:00 committed by GitHub
parent 741dcf405b
commit e16de199ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1559,7 +1559,7 @@ One good place to store them is `test/lib` or `test/test_helpers`.
# test/test_helpers/multiple_assertions.rb
module MultipleAssertions
def assert_multiple_of_forty_two(number)
assert (number % 42 == 0), 'expected #{number} to be a multiple of 42'
assert (number % 42 == 0), "expected #{number} to be a multiple of 42"
end
end
```