lib/snapshot/reports_generator.rb in snapshot-1.0.5 vs lib/snapshot/reports_generator.rb in snapshot-1.1.0
- old
+ new
@@ -33,10 +33,10 @@
export_path = "#{screens_path}/screenshots.html"
File.write(export_path, html)
export_path = File.expand_path(export_path)
Helper.log.info "Successfully created HTML file with an overview of all the screenshots: '#{export_path}'".green
- system("open '#{export_path}'") unless ENV["SNAPSHOT_SKIP_OPEN_SUMMARY"]
+ system("open '#{export_path}'") unless Snapshot.config[:skip_open_summary]
end
private
def lib_path