Fix string interpolation in testing guide
This commit is contained in:
parent
741dcf405b
commit
e16de199ae
@ -1559,7 +1559,7 @@ One good place to store them is `test/lib` or `test/test_helpers`.
|
|||||||
# test/test_helpers/multiple_assertions.rb
|
# test/test_helpers/multiple_assertions.rb
|
||||||
module MultipleAssertions
|
module MultipleAssertions
|
||||||
def assert_multiple_of_forty_two(number)
|
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
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user