summaryrefslogtreecommitdiff
path: root/spec/support/rubygems_ext.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/rubygems_ext.rb')
-rw-r--r--spec/support/rubygems_ext.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index 1093362d81..8c5dff880b 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -1,7 +1,6 @@
# frozen_string_literal: true
require_relative "path"
-require "fileutils"
module Spec
module Rubygems
@@ -50,6 +49,8 @@ module Spec
end
def setup
+ require "fileutils"
+
Gem.clear_paths
ENV["BUNDLE_PATH"] = nil