diff --git a/spec/test/features/control/append/error_unprocessable.feature b/spec/test/features/control/append/error_unprocessable.feature index 8e53802..eade7c3 100644 --- a/spec/test/features/control/append/error_unprocessable.feature +++ b/spec/test/features/control/append/error_unprocessable.feature @@ -17,16 +17,7 @@ Feature: Kapow! server reject responses with semantic errors. } """ Then I get 422 as response code - And I get "Missing Mandatory Field" as response reason phrase - And I get the following entity as response body: - """ - { - "missing_mandatory_fields": [ - "url_pattern", - "method" - ] - } - """ + And I get "Invalid Route" as response reason phrase Scenario: Error because of wrong route specification. If a request contains an invalid expression in the @@ -43,23 +34,4 @@ Feature: Kapow! server reject responses with semantic errors. } """ Then I get 422 as response code - And I get "Invalid Route Spec" as response reason phrase - And I get an empty response body - - Scenario: Error because of wrong method value. - If a request contains an invalid value in the - field method the server responds with an error. - - Given I have a running Kapow! server - When I append the route: - """ - { - "method": "SOMETIMES", - "url_pattern": "/", - "entrypoint": "/bin/sh -c", - "command": "ls -la / | response /body" - } - """ - Then I get 422 as response code - And I get "Invalid Data Type" as response reason phrase - And I get an empty response body + And I get "Invalid Route" as response reason phrase