Skip to content

Commit

Permalink
Make json-file reporter save JSON content (#246)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
  • Loading branch information
jeremiahsnapp authored and chris-rock committed Jun 19, 2017
1 parent 6015954 commit 0f9668c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/reporters/json_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def send_report(report)

def write_to_file(report, path)
json_file = File.new(path, 'w')
json_file.puts(report)
json_file.puts(JSON.generate(report))
json_file.close
end
end
Expand Down

0 comments on commit 0f9668c

Please sign in to comment.