Merge remote-tracking branch 'origin/open931' into open-master

This commit is contained in:
bwyu
2015-03-17 11:05:45 -07:00
3 changed files with 14 additions and 19 deletions

View File

@@ -13,21 +13,9 @@ define(
domainObject = { getModel: function () { return testModel; } },
mutation;
function mockPromise(value) {
return {
then: function (callback) {
return (value && value.then) ?
value : mockPromise(callback(value));
}
};
}
beforeEach(function () {
testModel = { number: 6 };
mutation = new MutationCapability(
{ when: mockPromise }, // $q
domainObject
);
mutation = new MutationCapability(domainObject);
});
it("allows mutation of a model", function () {