Permalink
Browse files

a couple more doc fixes

  • Loading branch information...
1 parent edd96c2 commit 40208055216bac810638a92df6f8ba68e5c47f5c @dhasenan committed May 20, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
@@ -22,6 +22,7 @@ Usage
Creating Mocks
--------------
MaryJane will create a mock from:
+
* an existing object
* an object prototype
* a constructor
@@ -70,6 +71,7 @@ Let's look at that in more depth. We've already looked at creating mock objects,
`when` is a MaryJane function that takes a mock object and returns an object ready to arrange a future method call. This object supports the same methods as your original object, but every method will return a method call object on which you can set some options.
Here's what you can do with the mock options:
+
* `thenReturn`: return a particular value.
* `thenThrow`: throw a given exception.
* `thenDo`: run a callback. See the section on callbacks below.
@@ -104,7 +106,7 @@ Currently, you can't check that a mock had no interactions or no unverified inte
Using Callbacks
---------------
-When you supply a callback on a method with `thenThrow`, the method you supply stands in for the called method.
+When you supply a callback on a method with `thenDo`, the method you supply stands in for the called method.
Consider:

0 comments on commit 4020805

Please sign in to comment.