From 8f50c9dede1f89570bac166c8568cb8031c3bbc8 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 4 Apr 2014 08:26:57 -0700 Subject: [PATCH] Add an assertion to the returned store object --- test/relations.integration.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/relations.integration.js b/test/relations.integration.js index c6decb26..0c3df8df 100644 --- a/test/relations.integration.js +++ b/test/relations.integration.js @@ -107,14 +107,10 @@ describe('relations - integration', function () { done(); }); }); - lt.describe.whenCalledRemotely('GET', '/api/widgets/:id', function () { - it('should succeed with statusCode 200', function () { - assert.equal(this.res.statusCode, 200); - }); - }); lt.describe.whenCalledRemotely('GET', '/api/widgets/:id/store', function () { it('should succeed with statusCode 200', function () { assert.equal(this.res.statusCode, 200); + assert.equal(this.res.body.id, this.store.id); }); }); });