Accept matching any HTTP status in json UAT helper

This commit is contained in:
Thibault Jouan
2015-05-04 02:19:44 +00:00
parent 223a6e7a85
commit 4f11cc63e2
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ module AcceptanceHelpers
end
def json status = :success
expect(response).to have_http_status status
expect(response).to have_http_status status unless status == :any
JSON.parse(response.body, symbolize_names: true)
end
end