features/step_definitions/json_steps.rb in berkshelf-4.0.1 vs features/step_definitions/json_steps.rb in berkshelf-4.1.0

- old
+ new

@@ -15,9 +15,9 @@ end Then /^the output should contain JSON:$/ do |data| parsed = ERB.new(data).result target = JSON.pretty_generate(JSON.parse(parsed).sort_by_key) - actual = JSON.pretty_generate(JSON.parse(all_output).sort_by_key) + actual = JSON.pretty_generate(JSON.parse(all_commands.map { |c| c.output }.join("\n")).sort_by_key) expect(actual).to eq(target) end