This commit is contained in:
Héctor Hurtado
2019-08-21 11:07:23 +02:00
7 changed files with 127 additions and 34 deletions
@@ -8,7 +8,7 @@ Feature: Kapow! server reject append requests with malformed JSON bodies.
the server will respond with a bad request error.
Given I have a running Kapow! server
When I try to append with this JSON document:
When I try to append with this malformed JSON document:
"""
{
"method" "GET",
@@ -20,5 +20,5 @@ Feature: Kapow! server reject append requests with malformed JSON bodies.
}
"""
Then I get 400 as response code
And I get "Malformed JSON" as response phrase
And I get "Malformed JSON" as response reason phrase
And I get an empty response body
@@ -21,5 +21,5 @@ Feature: Kapow! server reject insert requests with malformed JSON bodies.
}
"""
Then I get bad request as response code
And I get "Malformed JSON" as response phrase
And I get "Malformed JSON" as response reason phrase
And I get an empty response body