资 源 简 介
Move to github
https://github.com/mixed/jsmocktool
Javascript Mock Tool is Mock library of RSpec style.
Easy use Mock or Stub object!
20110626
mock object(verify, verify_all, reset, reset_all) the methods added.
```
mock("Foo.Bar").shouldreceive("test").withparam(1,2).and_return("2");
Foo.Bar.test(1,2);
mock("Foo.Bar").verify("test"); -> {"total":1,"[1,2]":1};
//If you call the method call returns, unless obj throw error.
mock("Foo.Bar").clear("test"); -> {"total":0};
//Is initialized to the information you"ve call.
```
20090616
namespace bug fix.
mock("Foo.Bar").should_receive("test").with_param(1,2).and_return("2");=>Foo.Bar.test(1,2); -> 2
20090615
Mock.anything() method add.
mock("Foo").should_receiv