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