diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f0e92ff..3d612b2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,13 +5,13 @@ config.order = 'random' - config.before(:suite) do + config.before do @original_home = ENV['HOME'] new_home = File.expand_path("./tmp/fakehome") ENV['HOME'] = new_home end - config.after(:suite) do + config.after do ENV['HOME'] = @original_home end end