hooks.rb 187 Bytes
Newer Older
Sylvester Keil's avatar
Sylvester Keil committed
1
Before do
Sylvester Keil's avatar
Sylvester Keil committed
2 3
  FileUtils.rm_rf(TEST_DIR) if File.exist?(TEST_DIR)
  FileUtils.mkdir_p(TEST_DIR)
Sylvester Keil's avatar
Sylvester Keil committed
4 5 6 7 8 9 10
  Dir.chdir(TEST_DIR)
end

After do
  FileUtils.rm_rf(TEST_DIR) if File.exist?(TEST_DIR)
end