Browse files

Fixes tests: resets current directory in gemcutter After block.

The Before was making a temp directory and chdir'ing into it and the
After was removing the temp directory, but it never changed back
out of the (now missing) temp directory. Subsequent tests failed
in the C `getcwd` function because CWD no longer existed.

Fixed with @jaredonline. Issue on branch #463.
  • Loading branch information...
1 parent 4fd6b8b commit d1ec01611a5bc4caf6ea3a0a42700d96afb06afc @mildmojo mildmojo committed Nov 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 features/support/gemcutter.rb
View
1 features/support/gemcutter.rb
@@ -16,5 +16,6 @@
After do
FileUtils.rm_rf(TEST_DIR)
+ Dir.chdir(Rails.root)
$redis.flushdb
end

0 comments on commit d1ec016

Please sign in to comment.