mirror of https://github.com/rails/rails
Improve readability of testing guide [ci skip]
Small change to improve the readability in section 2.3 of the testing guide.
This commit is contained in:
parent
c8c1460f7a
commit
dcc9bd35e2
|
@ -123,7 +123,7 @@ def test_the_truth
|
|||
end
|
||||
```
|
||||
|
||||
However only the `test` macro allows a more readable test name. You can still use regular method definitions though.
|
||||
Although you can still use regular method definitions, using the `test` macro allows for a more readable test name.
|
||||
|
||||
NOTE: The method name is generated by replacing spaces with underscores. The result does not need to be a valid Ruby identifier though, the name may contain punctuation characters etc. That's because in Ruby technically any string may be a method name. This may require use of `define_method` and `send` calls to function properly, but formally there's little restriction on the name.
|
||||
|
||||
|
|
Loading…
Reference in New Issue