class AirborneReport::RspecJsonFormatter
Public Instance Methods
craft_json(report)
click to toggle source
# File lib/airborne_report/rspec_json_formatter.rb, line 17 def craft_json(report) File.open('report.json', 'w') do |file| file.write(MultiJson.dump(report)) end end
stop(notification)
click to toggle source
# File lib/airborne_report/rspec_json_formatter.rb, line 10 def stop(notification) tests = AirborneReport::Storage::Tests.all report = Report.new(tests, notification).to_hash craft_json(report) end