Sha256: 4f1bd17461be6365e0d2ef8e32b9ae759a0921e838556105b9469811dada21eb

Contents?: true

Size: 1.05 KB

Versions: 21

Compression:

Stored size: 1.05 KB

Contents

Feature: Checking tracked requests
  After a response has been served from Mirage, the request that triggered it can be retrieved. This is useful
  for testing that the correct information was sent by your application code.

  Use a template's ID to retrieve the last request that was last received.


  Background: A template has already be put on Mirage
    Given the following template template:
    """
      {
         "request" : {
            "http_method" : "post"
         },
         "response":{
            "body":"Hello"
         }
      }
    """
    And 'response.body' is base64 encoded
    And the template is sent using PUT to '/templates/greeting'


  Scenario: Getting request data when the data was in the body.
    Given I send POST to '/responses/greeting' with request entity
    """
    Hello Mirage
    """
    When GET is sent to '/requests/1'
    Then request data should have been retrieved


  Scenario: Getting request data for a template that has not yet served a response.
    Given GET is sent to '/requests/1'
    Then a 404 should be returned

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
mirage-3.0.13 features/requests/get.feature
mirage-3.0.12 features/requests/get.feature
mirage-3.0.11 features/requests/get.feature
mirage-3.0.10 features/requests/get.feature
mirage-3.0.9 features/requests/get.feature
mirage-on-thin-3.0.8 features/requests/get.feature
mirage-3.0.8 features/requests/get.feature
mirage-3.0.7 features/requests/get.feature
mirage-3.0.6 features/requests/get.feature
mirage-3.0.5 features/requests/get.feature
mirage-3.0.4 features/requests/get.feature
mirage-3.0.3 features/requests/get.feature
mirage-3.0.2 features/requests/get.feature
mirage-3.0.1 features/requests/get.feature
mirage-3.0.0 features/requests/get.feature
mirage-3.0.0.alpha.17 features/requests/get.feature
mirage-3.0.0.alpha.16 features/requests/get.feature
mirage-3.0.0.alpha.15 features/requests/get.feature
mirage-3.0.0.alpha.14 features/requests/get.feature
mirage-3.0.0.alpha.13 features/requests/get.feature