Sha256: 65a9bc0ddfe5cd5d59216f1710a7941db8f63c395c174c81c45142d0824ee3fb

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

Contents

Feature: 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 'http://localhost:7001/mirage/templates/greeting'
    When GET is sent to 'http://localhost:7001/mirage/templates/1'
    Then the following should be returned:
    """
      {
         "response":{
            "default":false,
            "body":"Hello",
            "delay":0,
            "content_type":"text/plain",
            "status":200
         },
         "request":{
            "parameters":{

            },
            "body_content":[

            ],
            "http_method":"get"
         }
      }
    """


Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.11 features/server/templates/get.feature
mirage-3.0.0.alpha.10 features/server/templates/get.feature
mirage-3.0.0.alpha.9 features/server/templates/get.feature
mirage-3.0.0.alpha.8 features/server/templates/get.feature
mirage-3.0.0.alpha.7 features/server/templates/get.feature
mirage-3.0.0.alpha.6 features/server/templates/get.feature
mirage-3.0.0.alpha.5 features/server/templates/get.feature
mirage-3.0.0.alpha.4 features/server/templates/get.feature
mirage-3.0.0.alpha.3 features/server/templates/get.feature
mirage-3.0.0.alpha.2 features/server/templates/get.feature
mirage-3.0.0.alpha.1 features/server/templates/get.feature