Sha256: c0b491e880da9e371712f9925eefee49f1ef87fc77a455dbb30fadd4de84bfb1
Contents?: true
Size: 608 Bytes
Versions: 36
Compression:
Stored size: 608 Bytes
Contents
def htmlview_fixtures_path File.expand_path(File.dirname(__FILE__) + "/../fixtures") end def htmlview_fixtures_redcar File.join(htmlview_fixtures_path,".redcar") end def reset_htmlview_fixtures FileUtils.rm_rf(htmlview_fixtures_redcar) if File.exists?(htmlview_fixtures_redcar) File.open(htmlview_fixtures_path + "/sample.html", "w") do |f| f.print "<html><b>Hello!!</b></html>" end File.open(htmlview_fixtures_path + "/other.html", "w") do |f| f.print "<html><b>Is today Tuesday?</b></html>" end end Before do reset_htmlview_fixtures end After do reset_htmlview_fixtures end
Version data entries
36 entries across 36 versions & 2 rubygems