Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixes tests: resets current directory in gemcutter After block. #485

Merged
merged 1 commit into from

2 participants

@mildmojo

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.

@mildmojo mildmojo 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.
d1ec016
@cmeiklejohn cmeiklejohn merged commit c4f9f07 into rubygems:subscription_steps
@cmeiklejohn
Collaborator

:+1:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 4, 2012
  1. @mildmojo

    Fixes tests: resets current directory in gemcutter After block.

    mildmojo authored
    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.
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.