Sha256: 9e5e68e4e6fc3e2b7e059683fdf922bdae6e3f482e791ec08acb2ee7139bb313

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 KB

Contents

Feature: Generating empty objects
  Scenario: Empty object
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {}
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {}
      """

  Scenario: Array with null
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "array",
        "items": {}
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      [null]
      """

  Scenario: Ruby hash
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {}
      }
      """
    When I run the JSON data generator with the "ruby" option
    Then the output should be a Ruby hash


  Scenario: Ruby array
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "array",
        "items": {}
      }
      """
    When I run the JSON data generator with the "ruby" option
    Then the output should be a Ruby array

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
json_test_data-0.6.0 features/generate_empty_objects.feature
json_test_data-0.5.1 features/generate_empty_objects.feature
json_test_data-0.5.0 features/generate_empty_objects.feature
json_test_data-0.4.0 features/generate_empty_objects.feature
json_test_data-0.4.0.beta features/generate_empty_objects.feature