Sha256: bd29343c275c0510591a06d26412a1a1d431016da73ee54918b1f38e854da2e5
Contents?: true
Size: 1.87 KB
Versions: 25
Compression:
Stored size: 1.87 KB
Contents
Feature: Request data can be deleted. Background: The MockServer has already got a response for greeting and leaving on it. Given I send PUT to 'http://localhost:7001/mirage/templates/greeting' with body 'Hello' And I send GET to 'http://localhost:7001/mirage/responses/greeting' And I send PUT to 'http://localhost:7001/mirage/templates/leaving' with body 'Goodbye' And I send GET to 'http://localhost:7001/mirage/responses/leaving' Scenario: Deleting all requests And I send DELETE to 'http://localhost:7001/mirage/requests' When I send GET to 'http://localhost:7001/mirage/requests/1' Then a 404 should be returned When I send GET to 'http://localhost:7001/mirage/responses/greeting' Then a 200 should be returned When I send GET to 'http://localhost:7001/mirage/templates/1' Then a 200 should be returned When I send GET to 'http://localhost:7001/mirage/requests/2' Then a 404 should be returned When I send GET to 'http://localhost:7001/mirage/responses/leaving' Then a 200 should be returned When I send GET to 'http://localhost:7001/mirage/templates/2' Then a 200 should be returned Scenario: Deleting a stored request for a prticular response And I send DELETE to 'http://localhost:7001/mirage/requests/1' When I send GET to 'http://localhost:7001/mirage/requests/1' Then a 404 should be returned When I send GET to 'http://localhost:7001/mirage/responses/greeting' Then a 200 should be returned When I send GET to 'http://localhost:7001/mirage/templates/1' Then a 200 should be returned When I send GET to 'http://localhost:7001/mirage/requests/2' Then a 200 should be returned When I send GET to 'http://localhost:7001/mirage/responses/leaving' Then a 200 should be returned When I send GET to 'http://localhost:7001/mirage/templates/2' Then a 200 should be returned
Version data entries
25 entries across 25 versions & 1 rubygems