summaryrefslogtreecommitdiff
path: root/spec/bundler/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/spec_helper.rb')
-rw-r--r--spec/bundler/spec_helper.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/spec/bundler/spec_helper.rb b/spec/bundler/spec_helper.rb
index 99be2f4df8..dc4121cb70 100644
--- a/spec/bundler/spec_helper.rb
+++ b/spec/bundler/spec_helper.rb
@@ -4,7 +4,6 @@ require "bundler/psyched_yaml"
require "bundler/vendored_fileutils"
require "bundler/vendored_uri"
require "digest"
-require "tmpdir"
if File.expand_path(__FILE__) =~ %r{([^\w/\.:\-])}
abort "The bundler specs cannot be run from a path that contains special characters (particularly #{$1.inspect})"
@@ -74,6 +73,7 @@ RSpec.configure do |config|
Spec::Rubygems.test_setup
ENV["BUNDLE_SPEC_RUN"] = "true"
ENV["BUNDLE_USER_CONFIG"] = ENV["BUNDLE_USER_CACHE"] = ENV["BUNDLE_USER_PLUGIN"] = nil
+ ENV["XDG_CONFIG_HOME"] = nil
ENV["GEMRC"] = nil
# Don't wrap output in tests
@@ -111,16 +111,6 @@ RSpec.configure do |config|
end
end
- config.around :each do |example|
- Dir.mktmpdir("bundler_commands_console") do |dir|
- xdg_config_home_backup = ENV.delete("XDG_CONFIG_HOME")
- ENV["XDG_CONFIG_HOME"] = dir
- example.run
- ensure
- ENV["XDG_CONFIG_HOME"] = xdg_config_home_backup
- end
- end
-
config.after :suite do
FileUtils.rm_r Spec::Path.pristine_system_gem_path
end