Browse files

added clarification to stub note in readme

[git-p4: depot-paths = "//src/minitest/dev/": change = 8043]
  • Loading branch information...
1 parent ef58eaf commit c01fe7d01840c2a24a70b7d2cac8024fcf8f21f3 @zenspider zenspider committed Dec 7, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 README.txt
@@ -222,7 +222,12 @@ Output is tab-delimited to make it easy to paste into a spreadsheet.
A note on stubbing: In order to stub a method, the method must
-actually exist prior to stubbing.
+actually exist prior to stubbing. Use a singleton method to create a
+new non-existing method:
+ def obj_under_test.fake_method
+ ...
+ end
=== Customizable Test Runner Types:

0 comments on commit c01fe7d

Please sign in to comment.