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

@ -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
```