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:
James Baer 2017-03-10 12:33:21 -05:00
parent c8c1460f7a
commit dcc9bd35e2
1 changed files with 1 additions and 1 deletions

View File

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