aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-12-22 03:25:40 -0800
committerZachary Scott <e@zzak.io>2014-12-22 03:25:40 -0800
commitf2852298a1be4d8881dcdae3a79eb68346d9679b (patch)
tree74358f25ce16d4eb4312661f9942895f409f98c9 /guides/source/testing.md
parente36d79fbde5fabc3dba892b10cd42e50a7be8f61 (diff)
downloadrails-f2852298a1be4d8881dcdae3a79eb68346d9679b.tar.gz
rails-f2852298a1be4d8881dcdae3a79eb68346d9679b.tar.bz2
rails-f2852298a1be4d8881dcdae3a79eb68346d9679b.zip
Fix NOTE for method naming in Ruby and add intro sentence to next section.
[ci skip]
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 381eb3e689..7d3da22597 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -204,7 +204,9 @@ end
However only the `test` macro allows a more readable test name. You can still use regular method definitions though.
-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. Odd ones need `define_method` and `send` calls, but formally there's no restriction.
+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.
+
+Next, let's look at our first assertion:
```ruby
assert true