Sha256: a625614b57df5a66c5470afd715e11b416f53e334c711c7057e342aa7ef41bae
Contents?: true
Size: 1.04 KB
Versions: 22
Compression:
Stored size: 1.04 KB
Contents
Feature: If you want to see the content of a particular response without triggering then it can be peeked instead. To do this, the responses unique id is required to identify it #TODO should return headers as well Scenario: Peeking a text based response Given I send PUT to 'http://localhost:7001/mirage/templates/xml' with body '<xml></xml>' and headers: | content-type | text/xml | When I send GET to 'http://localhost:7001/mirage/templates/1' Then '<xml></xml>' should be returned And the response 'content-type' should be 'text/xml' Scenario: Peeking a file based response Given I send PUT to 'http://localhost:7001/mirage/templates/some/location/download' with file: README.md and headers: | X-mirage-file | true | When I send GET to 'http://localhost:7001/mirage/templates/1' Then the response should be the same as the content of 'README.md' Scenario: Peeking a response that does not exist When I send GET to 'http://localhost:7001/mirage/templates/1' Then a 404 should be returned
Version data entries
22 entries across 22 versions & 1 rubygems