lib/snapshot/reports_generator.rb in snapshot-0.4.7 vs lib/snapshot/reports_generator.rb in snapshot-0.4.8
- old
+ new
@@ -25,10 +25,10 @@
end
end
end
end
- html_path = [lib_path, "snapshot/page.html.erb"].join('/')
+ html_path = File.join(lib_path, "snapshot/page.html.erb")
html = ERB.new(File.read(html_path)).result(binding) # http://www.rrn.dk/rubys-erb-templating-system
export_path = "#{screens_path}/screenshots.html"
File.write(export_path, html)
\ No newline at end of file