spec/undercover_spec.rb in danger-undercover-1.1.0 vs spec/undercover_spec.rb in danger-undercover-2.0.0

- old
+ new

@@ -21,18 +21,18 @@ end it 'shows success message if nothing to report' do report_path = 'spec/fixtures/undercover_passed.txt' @undercover.report(report_path) - report = File.open(report_path).read + report = File.read(report_path) expect(@dangerfile.status_report[:messages]).to eq([report]) end it 'shows warnings if undercover has a report' do report_path = 'spec/fixtures/undercover_failed.txt' @undercover.report(report_path) - report = File.open(report_path).read + report = File.read(report_path) expect(@dangerfile.status_report[:warnings]).to eq([report]) end end end