diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-21 15:52:39 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-12 09:24:57 -0400 |
commit | b874d63cd3cfdd2d52a5e6fa849c8b7a3f116d1b (patch) | |
tree | 99869986467f51ce0dfd4460b233e8c6ee58cc1a | |
parent | c9207d3e27f24f22279873de7257e41de9f9eed5 (diff) | |
download | bundler-b874d63cd3cfdd2d52a5e6fa849c8b7a3f116d1b.tar.gz |
Add missing require
Otherwise it could happen that support/hax defines Bundler::VERSION first,
and then the real version file redefines it. Not at the moment due to
the version overwriting hacks in our version.rb file, but those will be
removed.
-rw-r--r-- | spec/support/hax.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/hax.rb b/spec/support/hax.rb index b14e4a5943..202e8dcc32 100644 --- a/spec/support/hax.rb +++ b/spec/support/hax.rb @@ -21,6 +21,8 @@ module Gem end if ENV["BUNDLER_SPEC_VERSION"] + require "bundler/version" + module Bundler remove_const(:VERSION) if const_defined?(:VERSION) VERSION = ENV["BUNDLER_SPEC_VERSION"].dup |