Check for success instead of 200 in json UAT helper
This commit is contained in:
1 parent
689fe2f4dd
commit
562b57a900
1 file changed
+2
-2
@@ -40,8 +40,8 @@ module AcceptanceHelpers
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def json status = 200
|
def json status = :success
|
||||||
expect(response.status).to be status
|
expect(response).to have_http_status status
|
||||||
JSON.parse(response.body, symbolize_names: true)
|
JSON.parse(response.body, symbolize_names: true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in new issue
Block a user