features/step_definitions/json_steps.rb in berkshelf-3.0.0.beta2 vs features/step_definitions/json_steps.rb in berkshelf-3.0.0.beta3
- old
+ new
@@ -12,16 +12,9 @@
seed
end
end
end
-Then /^the file "(.*?)" should contain JSON:$/ do |file, data|
- target = JSON.pretty_generate(JSON.parse(data).sort_by_key)
- actual = JSON.pretty_generate(JSON.parse(File.read(File.join(current_dir, file))).sort_by_key)
-
- expect(actual).to eq(target)
-end
-
Then /^the output should contain JSON:$/ do |data|
target = JSON.pretty_generate(JSON.parse(data).sort_by_key)
actual = JSON.pretty_generate(JSON.parse(all_output).sort_by_key)
expect(actual).to eq(target)