Sha256: bd2c7681a80ec1b30395293cc2e20ec116a801bb6c6432227a701809250d5bc5

Contents?: true

Size: 1.05 KB

Versions: 13

Compression:

Stored size: 1.05 KB

Contents

Feature: Liquid templates
"""
Note that these also show variable interpolation happening in the response body
"""

  Scenario: Variable interpolation in URI
    When I have set some template variable "foo"
    And I GET "/route/{{foo}}"
    Then the response should be 200
    And I should receive the JSON:
    """
      { "variable" : "{{foo}}" }
    """

  Scenario: Variable interpolation in params
    When I have set some template variable "foo"
    And I POST to "/" with:
      | Name        | Value   |
      | some_param  | {{foo}} |
      | im_a_number | 1       |
    Then the response should be 201
    And I should receive the JSON:
    """
      {
        "some_param" : "{{foo}}",
        "im_a_number" : "1"
      }
    """

  Scenario: Variable interpolation in JSON body
    When I have set some template variable "foo"
    And I POST to "/json" with the JSON:
    """
      {
        "some_var" : "{{foo}}"
      }
    """
    Then the response should be 201
    And I should receive the JSON:
    """
      {
        "some_var" : "{{foo}}"
      }
    """

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lookout-rack-test-3.0.0 features/liquid_templates.feature
lookout-rack-test-2.3.1 features/liquid_templates.feature
lookout-rack-test-2.3.0 features/liquid_templates.feature
lookout-rack-test-2.2.0 features/liquid_templates.feature
lookout-rack-test-2.1.0 features/liquid_templates.feature
lookout-rack-test-2.0.2 features/liquid_templates.feature
lookout-rack-test-2.0.1 features/liquid_templates.feature
lookout-rack-test-2.0.0 features/liquid_templates.feature
lookout-rack-test-1.3.0 features/liquid_templates.feature
lookout-rack-test-1.2.0 features/liquid_templates.feature
lookout-rack-test-1.1.0 features/liquid_templates.feature
lookout-rack-test-1.0.1 features/liquid_templates.feature
lookout-rack-test-1.0.0 features/liquid_templates.feature