diff --git a/spec/test/features/data/handler/error_handleridnotfound.feature b/spec/test/features/data/handler/error_handleridnotfound.feature index c729803..782a2dc 100644 --- a/spec/test/features/data/handler/error_handleridnotfound.feature +++ b/spec/test/features/data/handler/error_handleridnotfound.feature @@ -28,12 +28,11 @@ Feature: Fail to retrieve resources from nonexistent handler in Kapow! server. # And I get "Handler ID Not Found" as response reason phrase Scenario: Try to get an invalid resource from a nonexistent handler. - A request to retrieve an invalid resource - from a nonexistent handler will trigger a - handler ID not found error + A request to retrieve an invalid resource from a nonexistent + handler will trigger an invalid resource path error even if the resource is invalid. Given I have a running Kapow! server When I get the resource "/invalid/path" for the handler with id "XXXXXXXXXX" - Then I get 404 as response code -# And I get "Handler ID Not Found" as response reason phrase + Then I get 400 as response code +# And I get "Invalid Resource Path" as response reason phrase diff --git a/spec/test/features/data/handler/success.feature b/spec/test/features/data/handler/success.feature index 72b3756..5c4bbc5 100644 --- a/spec/test/features/data/handler/success.feature +++ b/spec/test/features/data/handler/success.feature @@ -35,17 +35,17 @@ Feature: Retrieve a resource from a handler in Kapow! server. """ Scenario: Retrieve a resource item. - Get the "request/headers/Host" item resource for + Get the "request/params/name" item resource for the current request through the handler id. Given I have a Kapow! server with the following testing routes: | method | url_pattern | | GET | /foo | - When I send a request to the testing route "/foo" - And I get the resource "/request/headers/Host" + When I send a request to the testing route "/foo?name=bar" + And I get the resource "/request/params/name" Then I get 200 as response code # And I get "OK" as response reason phrase And I get the following response raw body: """ - localhost:8080 + bar """