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:
parent
741dcf405b
commit
e16de199ae
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue