1
0
Fork 0

Foxx Repository: Also check the returned object of byId

This commit is contained in:
Lucas Dohmen 2013-09-16 15:42:03 +02:00
parent 70c6b403b2
commit 6618ac6801
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,7 @@ function RepositoryMethodsSpec() {
collection.assertIsSatisfied();
},
testByIdReturnValue: function () {
testByIdConstructsModelAndReturnsIt: function () {
allow(collection)
.toReceive("document")
.andReturn(data);
@ -171,6 +171,7 @@ function RepositoryMethodsSpec() {
model = instance.byId(id);
assertTrue(model instanceof ModelPrototype);
ModelPrototype.assertIsSatisfied();
}
};