Sha256: 482c13051206aadfe8a0118583a83051c500d89f201ed9bc13b974dd143bebc8

Contents?: true

Size: 1.17 KB

Versions: 21

Compression:

Stored size: 1.17 KB

Contents

Feature: Retrieving
  Templates can be retrieved by using the ID that was returned when they were created


  Scenario: Retrieving a template
    Given the following template template:
    """
      {
         "response":{
            "default":false,
            "body":"Hello",
            "delay":0,
            "content_type":"text/plain",
            "status":200
         },
         "request":{
            "parameters":{

            },
            "body_content":[

            ],
            "http_method":"get"
         }
      }
    """
    And the template is sent using PUT to '/templates/greeting'
    When GET is sent to '/templates/1'
    Then the following json should be returned:
    """
      {
         "id": 1,
         "endpoint": "greeting",
         "requests_url": "http://localhost:7001/requests/1",
         "response":{
            "default":false,
            "body":"Hello",
            "delay":0,
            "content_type":"text/plain",
            "status":200
         },
         "request":{
            "parameters":{

            },
            "headers":{},
            "body_content":[
            ],
            "http_method":"get"
         }
      }
    """


Version data entries

21 entries across 21 versions & 2 rubygems

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