diff options
author | Zachary Scott <e@zzak.io> | 2014-12-22 03:25:40 -0800 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-12-22 03:25:40 -0800 |
commit | f2852298a1be4d8881dcdae3a79eb68346d9679b (patch) | |
tree | 74358f25ce16d4eb4312661f9942895f409f98c9 | |
parent | e36d79fbde5fabc3dba892b10cd42e50a7be8f61 (diff) | |
download | rails-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]
-rw-r--r-- | guides/source/testing.md | 4 |
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 |