Skip to content

Commit bc88915

Browse files
committed
note that method_source uses a similar algorithm
1 parent 0cbc35a commit bc88915

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## "Feels so right, it can't be Wrong"
22

33
![Someone is Wrong on the Internet](http://imgs.xkcd.com/comics/duty_calls.png)
4-
4+
55
Maintained by: Alex Chaffee <http://alexchaffee.com>
66

77
## Abstract ##
@@ -303,6 +303,8 @@ Before you get your knickers in a twist about how this is totally unacceptable b
303303
* Beware of Side Effects! (See discussion elsewhere in this document.)
304304
* "Doesn't all this parsing slow down my test run"? No - this applies to failure cases only. If the assert block returns true then Wrong simply moves on.
305305

306+
FYI, the [method_source gem](https://github.com/banister/method_source) uses a similar algorithm (keep grabbing lines of source code and [try to parse them](https://github.com/banister/method_source/blob/master/lib/method_source/code_helpers.rb#L66) until you stop getting parse errors).
307+
306308
## Explanations ##
307309

308310
`assert` and `deny` can take an optional explanation, e.g.

0 commit comments

Comments
 (0)