Skip to content

Instantly share code, notes, and snippets.

@cjohansen
Forked from augustl/capabilities_test.js
Created August 9, 2010 12:34
Show Gist options
  • Save cjohansen/515354 to your computer and use it in GitHub Desktop.
Save cjohansen/515354 to your computer and use it in GitHub Desktop.
TestCase("CapabilitiesTest", {
setUp: function () {
this.sandbox = sinon.create(sinon.sandbox());
this.sandbox.useServer();
this.server = this.sandbox.server;
},
tearDown: function () {
this.sandbox.restore();
},
"test creating instances": function () {
this.sandbox.stub(jQuery, "ajax"); // spy, mock, and so on
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment