diff options
author | Vipul A M <vipulnsward@gmail.com> | 2017-03-11 01:05:52 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-11 01:05:52 +0530 |
commit | 76b31bdd863567695f995fdbb377c1e0690446f2 (patch) | |
tree | 9081ccc3d4092e548076149947ad2c2ce257bfdc | |
parent | c8c1460f7a97c15dff641a30e63914991d407595 (diff) | |
parent | dcc9bd35e248f9e038c0fbc6a2024cd2d5228cbc (diff) | |
download | rails-76b31bdd863567695f995fdbb377c1e0690446f2.tar.gz rails-76b31bdd863567695f995fdbb377c1e0690446f2.tar.bz2 rails-76b31bdd863567695f995fdbb377c1e0690446f2.zip |
Merge pull request #28375 from baerjam/improve-testing-documentaion
Improve readability of testing guide [ci skip]
-rw-r--r-- | guides/source/testing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index 4caf55ab12..27f5b5e916 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -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. |