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

Version Path
mirage-2.1.2 features/server/templates/get.feature
mirage-2.0.16 features/server/templates/get.feature
mirage-2.0.15 features/server/templates/get.feature
mirage-2.0.14 features/server/templates/get.feature
mirage-2.0.13 features/server/templates/get.feature
mirage-2.0.12 features/server/templates/get.feature
mirage-2.0.11 features/server/templates/get.feature
mirage-2.0.10 features/server/templates/get.feature
mirage-2.0.9 features/server/templates/get.feature
mirage-2.0.8 features/server/templates/get.feature
mirage-2.0.7 features/server/templates/get.feature
mirage-2.0.6 features/server/templates/get.feature
mirage-2.0.5 features/server/templates/get.feature
mirage-2.0.4 features/server/templates/get.feature
mirage-2.0.3 features/server/templates/get.feature
mirage-2.0.2 features/server/templates/get.feature
mirage-2.0.1 features/server/templates/get.feature
mirage-2.0.0 features/server/templates/get.feature
mirage-2.0.0.alpha4 features/server/templates/get.feature
mirage-2.0.0.alpha3 features/server/peek.feature