Sha256: 23d127d6f8d56f851f742961baa68a7d0eafcd3bdd12907cd9fca5b852d88042

Contents?: true

Size: 301 Bytes

Versions: 12

Compression:

Stored size: 301 Bytes

Contents

Then /^the output should be JSON$/ do
  lambda { parse_json(all_output) }.should_not raise_error
end

Then /^the file "(.*?)" should contain JSON:$/ do |file, data|
  target = MultiJson.decode(data)
  actual = MultiJson.decode(File.read(File.join(current_dir, file)))

  target.should eql(actual)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
berkshelf-1.4.6 features/step_definitions/json_steps.rb
berkshelf-1.4.5 features/step_definitions/json_steps.rb
berkshelf-1.4.4 features/step_definitions/json_steps.rb
berkshelf-1.4.3 features/step_definitions/json_steps.rb
berkshelf-1.4.2 features/step_definitions/json_steps.rb
berkshelf-1.4.1 features/step_definitions/json_steps.rb
berkshelf-1.4.0 features/step_definitions/json_steps.rb
berkshelf-1.4.0.rc1 features/step_definitions/json_steps.rb
berkshelf-1.3.1 features/step_definitions/json_steps.rb
berkshelf-1.3.0.rc1 features/step_definitions/json_steps.rb
berkshelf-1.2.1 features/step_definitions/json_steps.rb
berkshelf-1.2.0.rc1 features/step_definitions/json_steps.rb