Sha256: 35c632903f162de21da46a84535191547af3b4bcc125130462f413f16390ee64
Contents?: true
Size: 1.13 KB
Versions: 21
Compression:
Stored size: 1.13 KB
Contents
Feature: Deleting When a template is deleted, any tracked request data is also removed. Background: The MockServer has already got a response for greeting and leaving on it. Given the following template template: """ { "response":{ "body":"Hello" } } """ And 'response.body' is base64 encoded And the template is sent using PUT to '/templates/greeting' Given the following template template: """ { "response":{ "body":"Goodbye" } } """ And 'response.body' is base64 encoded And the template is sent using PUT to '/templates/leaving' Scenario: Deleting all templates Given DELETE is sent to '/templates' When GET is sent to '/responses/greeting' Then a 404 should be returned When GET is sent to '/responses/leaving' Then a 404 should be returned Scenario: Deleting a particular template Given DELETE is sent to '/templates/1' When GET is sent to '/responses/greeting' Then a 404 should be returned When GET is sent to '/responses/leaving' Then a 200 should be returned
Version data entries
21 entries across 21 versions & 2 rubygems