Check for success instead of 200 in json UAT helper
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user