Permalink
Browse files

No more expresso.

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...
1 parent 9b841ca commit 595a0b002cdbb38cf9a64bbc6ad2149c9f0080f3 @dhasenan committed Mar 19, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −1 README.md
  2. +0 −1 package.json
View
@@ -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.
View
@@ -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.