Sha256: 6ecec275b0930bb2a177df588f58cd7540c313770c7c813c8346c8cdb3473160

Contents?: true

Size: 908 Bytes

Versions: 4

Compression:

Stored size: 908 Bytes

Contents

Feature: Paths
  Background:
    Given the JSON is:
      """
      {
        "array": [
          {
            "one": 1,
            "two": 2
          },
          {
            "four": 4,
            "three": 3
          }
        ],
        "hash": {
          "even": [
            6,
            8
          ],
          "odd": [
            5,
            7
          ]
        },
        "id": null
      }
      """

  Scenario: Nested paths
    When I get the JSON
    Then the JSON should have "array/0/one"
    And the JSON should have "array/0/two"
    And the JSON should have "array/1/four"
    And the JSON should have "array/1/three"
    And the JSON should have "hash/even/0"
    And the JSON should have "hash/even/1"
    And the JSON should have "hash/odd/0"
    And the JSON should have "hash/odd/1"

  Scenario: Ignored paths
    When I get the JSON
    Then the JSON should have "id"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
json_spec-0.4.0 features/paths.feature
json_spec-0.3.0 features/paths.feature
json_spec-0.2.0 features/paths.feature
json_spec-0.1.0 features/paths.feature