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

Version Path
json_test_data-1.2.0 features/step_definitions/json_test_data_steps.rb
json_test_data-1.1.3 features/step_definitions/json_test_data_steps.rb
json_test_data-1.1.2 features/step_definitions/json_test_data_steps.rb
json_test_data-1.1.1 features/step_definitions/json_test_data_steps.rb
json_test_data-1.1.0 features/step_definitions/json_test_data_steps.rb
json_test_data-1.0.0 features/step_definitions/json_test_data_steps.rb
json_test_data-0.9.0 features/step_definitions/json_test_data_steps.rb
json_test_data-0.8.0 features/step_definitions/json_test_data_steps.rb
json_test_data-0.7.0 features/step_definitions/json_test_data_steps.rb