In Cucumber step definitions, it'd be smart not to chdir into a dir we're about to kill

This commit is contained in:
Parker Moore
2013-05-05 17:25:42 +02:00
parent 5836b441f6
commit 2d0e65b5f7

View File

@@ -5,7 +5,7 @@ Before do
end
After do
Dir.chdir(TEST_DIR)
Dir.chdir(File.expand_path("..", TEST_DIR))
FileUtils.rm_rf(TEST_DIR)
end