summaryrefslogtreecommitdiff
path: root/spec/support/hax.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/hax.rb')
-rw-r--r--spec/support/hax.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/support/hax.rb b/spec/support/hax.rb
index 3e1ece2f0a..c18470acd2 100644
--- a/spec/support/hax.rb
+++ b/spec/support/hax.rb
@@ -28,7 +28,8 @@ module Gem
end
if ENV["BUNDLER_SPEC_VERSION"]
- require "bundler/version"
+ require_relative "path"
+ require "#{Spec::Path.lib_dir}/bundler/version"
module Bundler
remove_const(:VERSION) if const_defined?(:VERSION)
@@ -37,7 +38,8 @@ if ENV["BUNDLER_SPEC_VERSION"]
end
if ENV["BUNDLER_SPEC_WINDOWS"] == "true"
- require "bundler/constants"
+ require_relative "path"
+ require "#{Spec::Path.lib_dir}/bundler/constants"
module Bundler
remove_const :WINDOWS if defined?(WINDOWS)