aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorJames Baer <jamesfbaer@gmail.com>2017-03-10 12:33:21 -0500
committerJames Baer <jamesfbaer@gmail.com>2017-03-10 14:28:52 -0500
commitdcc9bd35e248f9e038c0fbc6a2024cd2d5228cbc (patch)
tree9081ccc3d4092e548076149947ad2c2ce257bfdc /guides/source/testing.md
parentc8c1460f7a97c15dff641a30e63914991d407595 (diff)
downloadrails-dcc9bd35e248f9e038c0fbc6a2024cd2d5228cbc.tar.gz
rails-dcc9bd35e248f9e038c0fbc6a2024cd2d5228cbc.tar.bz2
rails-dcc9bd35e248f9e038c0fbc6a2024cd2d5228cbc.zip
Improve readability of testing guide [ci skip]
Small change to improve the readability in section 2.3 of the testing guide.
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md2
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.