Sha256: 6ec90709f6064d25bb811f95355089af27d5bf1c21dd678d7fc63b0ecdeb75a7

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

module TemplateHelper
  def mock_template(file_name, html)
    File.write(Rails.root.join('app/views', file_name), html)
  end

  def remove_templates(folder)
    FileUtils.rm_rf(Dir.glob(Rails.root.join('app/views', folder, '*')))
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
inverter-0.5.1 test/helpers/template_helper.rb
inverter-0.5.0 test/helpers/template_helper.rb
inverter-0.4.7 test/helpers/template_helper.rb
inverter-0.4.6 test/helpers/template_helper.rb
inverter-0.4.5 test/helpers/template_helper.rb