From b175c027145773dc076abb0068e0f5ce03b10c10 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Tue, 23 Aug 2016 16:19:10 -0700 Subject: [PATCH] Fix article test to handle patches endpoint change --- spec/server/functional/article.spec.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/server/functional/article.spec.coffee b/spec/server/functional/article.spec.coffee index 5a5fb1c4a..524a3be82 100644 --- a/spec/server/functional/article.spec.coffee +++ b/spec/server/functional/article.spec.coffee @@ -613,9 +613,9 @@ describe 'GET /db/article/:handle/patches', -> expect(patches[0]._id).toBe(patch._id) done() - it 'returns 422 for invalid object ids', utils.wrap (done) -> - [res, body] = yield request.getAsync getURL("/db/article/invalid/patches"), { json: true } - expect(res.statusCode).toBe(422) + it 'returns 404 for handles that do not exist', utils.wrap (done) -> + [res, body] = yield request.getAsync getURL("/db/article/dne/patches"), { json: true } + expect(res.statusCode).toBe(404) done()