Skip to content

Commit

Permalink
No more expresso.
Browse files Browse the repository at this point in the history
I was confused. Tests did run previously, but required expresso. Now we
don't require expresso. This means we have fewer dependencies, which is
good. And since it only added about six lines of code...
  • Loading branch information
dhasenan committed Mar 19, 2012
1 parent 9b841ca commit 595a0b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ MaryJane will create a mock from:
* an object prototype
* a constructor

It will mock its methods and make a shallow copy of its fields. It will *not* run the constructor, even if you pass a constructor or a prototype. Since JavaScript objects typically get instance fields from the constructor, it's recommended that you pass in a newly constructed instance, such as: `MaryJane.mock(new ClassUnderTest())`. (This usage will call a constructor, but it isn't Mary Jane doing so.)
It will mock its methods and make a shallow copy of its fields. It will *not* run the constructor, even if you pass a constructor or a prototype. Since JavaScript objects typically get instance fields from the constructor, it's recommended that you pass in a newly constructed instance, such as: `MaryJane.mock(new ClassUnderTest())`. (This usage will call a constructor, but it isn't MaryJane doing so.)

There's not much point in using an object prototype. It's identical to passing the constructor.

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
"main": "./lib/maryjane.coffee",
"homepage": "https://github.com/dhasenan/maryjane",
"dependencies": { "coffee-script": "*" },
"devDependencies": { "expresso": "*" }
}

0 comments on commit 595a0b0

Please sign in to comment.