From 562b57a900562bec225da113051b1027c560b5c6 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Mon, 4 May 2015 00:52:21 +0000 Subject: [PATCH] Check for success instead of 200 in json UAT helper --- spec/support/acceptance_helpers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/acceptance_helpers.rb b/spec/support/acceptance_helpers.rb index 52fe785..5662225 100644 --- a/spec/support/acceptance_helpers.rb +++ b/spec/support/acceptance_helpers.rb @@ -40,8 +40,8 @@ module AcceptanceHelpers end end - def json status = 200 - expect(response.status).to be status + def json status = :success + expect(response).to have_http_status status JSON.parse(response.body, symbolize_names: true) end end