Sha256: 9123006e9774c19749c6ee1095c0165819b23468bf533aeff2995e71a7211ed1
Contents?: true
Size: 555 Bytes
Versions: 9
Compression:
Stored size: 555 Bytes
Contents
Given(/the following JSON schema:$/) do |schema| @schema = schema end When(/^I run the JSON data generator$/) do @output = JsonTestData.generate!(@schema) end When(/^I run the JSON data generator with the "ruby" option$/) do @output = JsonTestData.generate!(@schema, ruby: true) end Then(/^the output should match the schema$/) do expect(@output).to match_schema(@schema) end Then(/^the output should be a Ruby hash$/) do expect(@output).to be_a(Hash) end Then(/^the output should be a Ruby array$/) do expect(@output).to be_a(Array) end
Version data entries
9 entries across 9 versions & 1 rubygems