Sha256: fb5c25910064002032cd4ad547a77d8c8942774d0be7f62c2727f573afc3e185
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
@wip Feature: Handling data types The data generated needs to have the correct properties or items, including the data type specified Scenario: Strings Given the following JSON schema: """json { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "name": { "type": "string" } } } """ When I run the JSON data generator Then the JSON output should be: """json {"name":"string"} """ Scenario: Numbers Given the following JSON schema: """json { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "id": { "type": "number" } } } """ When I run the JSON data generator Then the JSON output should be: """json {"id":1} """ Scenario: Booleans Given the following JSON schema: """json { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "admin": { "type": "boolean" } } } """ When I run the JSON data generator Then the JSON output should be: """json {"admin":true} """
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
json_test_data-0.0.1 | features/data_types.feature |
json_test_data-0.0.1.beta | features/data_types.feature |