From 2d0e65b5f798ea3685d31250f4a4c0f74bdc8486 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 5 May 2013 17:25:42 +0200 Subject: [PATCH] In Cucumber step definitions, it'd be smart not to chdir into a dir we're about to kill --- features/step_definitions/jekyll_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index c30b9034..75330738 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -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