Improve status code expectation in json UAT helper
This commit is contained in:
parent
abb20c89ad
commit
eb62ab96ff
@ -40,8 +40,8 @@ module AcceptanceHelpers
|
||||
end
|
||||
end
|
||||
|
||||
def json
|
||||
expect(response).to be_success
|
||||
def json status = 200
|
||||
expect(response.status).to be status
|
||||
JSON.parse(response.body, symbolize_names: true)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user