diff options
-rw-r--r-- | spec/support/helpers.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index b9b53fe279..3ca79a159d 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -395,23 +395,11 @@ module Spec FileUtils.rm_rf(system_gem_path) FileUtils.mkdir_p(system_gem_path) - gem_home = ENV["GEM_HOME"] - gem_path = ENV["GEM_PATH"] - path = ENV["PATH"] - set_gem_paths_to(system_gem_path) gems.each do |gem| gem_command! "install --no-document #{gem}" end - return unless block_given? - begin - yield - ensure - ENV["GEM_HOME"] = gem_home - ENV["GEM_PATH"] = gem_path - ENV["PATH"] = path - end end def set_gem_paths_to(path) |