diff options
author | elijah <elijah@riseup.net> | 2016-04-12 10:25:25 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-04-12 10:25:25 -0700 |
commit | 50980798983c9cf9b4d562a2a9279ef3ab3d25fc (patch) | |
tree | 2b7e2e6fcb9cca269c11bb77152eece3be7c6acf /test/test_helper.rb | |
parent | 298ae98021443dabe98e6855436f24ad8ad12a99 (diff) |
move template() from manager to environment. closes #8026
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index b9a2c9e..f7ec6d9 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -4,6 +4,7 @@ require 'bundler/setup' require 'minitest/autorun' require 'leap_cli' require 'gli' +require 'fileutils' DEBUG = true @@ -49,6 +50,14 @@ class Minitest::Test "#{base_path}/test/provider" end + def cleanup_files(*args) + Dir.chdir(test_provider_path) do + args.each do |file| + FileUtils.rm_r(file) if File.exist?(file) + end + end + end + def with_multiple_rubies(&block) if ENV["RUBY"] ENV["RUBY"].split(',').each do |ruby| |