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

Version Path
redcar-0.13 plugins/html_view/features/support/env.rb
redcar-dev-0.13.5dev plugins/html_view/features/support/env.rb
redcar-dev-0.13.4dev plugins/html_view/features/support/env.rb
redcar-dev-0.13.3dev plugins/html_view/features/support/env.rb
redcar-dev-0.13.2dev plugins/html_view/features/support/env.rb
redcar-dev-0.13.1dev plugins/html_view/features/support/env.rb
redcar-0.12.1 plugins/html_view/features/support/env.rb
redcar-dev-0.13.0dev plugins/html_view/features/support/env.rb
redcar-0.12 plugins/html_view/features/support/env.rb
redcar-dev-0.12.27dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.26dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.25dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.24dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.23dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.22dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.21dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.20dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.19dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.18dev plugins/html_view/features/support/env.rb
redcar-dev-0.12.17dev plugins/html_view/features/support/env.rb