Sha256: 736fd504033844c185dc06ed5b97147a8d07581d50211c01e500f6435e77f6b0

Contents?: true

Size: 274 Bytes

Versions: 5

Compression:

Stored size: 274 Bytes

Contents

module FileHelpers
  def setup_file(file_name)
    FileUtils.mkdir_p File.dirname(file_name)
    FileUtils.touch file_name
  end

  def cleanup_files(dir)
    FileUtils.rm_rf TestConfig.paperclip_test_root
    FileUtils.rm_rf Rails.root.join('public', 'cms', dir)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
liquid_cms-0.3.2.0 test/test_helpers/file_helpers.rb
liquid_cms-0.2.2.0 test/test_helpers/file_helpers.rb
liquid_cms-0.2.1.1 test/test_helpers/file_helpers.rb
liquid_cms-0.3.1.0 test/test_helpers/file_helpers.rb
liquid_cms-0.2.1.0 test/test_helpers/file_helpers.rb