summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-01-14 20:15:17 -0600
committerSamuel Giddins <segiddins@segiddins.me>2017-01-14 20:15:17 -0600
commite67df19ebd92d25bc1e8960ce0985a61bc5c997e (patch)
tree392784a0e2e7d2bf5955fa4c7eb74dd7cd26059a
parent1e05d24050b4177e9a8001b7c1083d713b474faf (diff)
downloadbundler-seg-outdated-bundler-message.tar.gz
Avoid constant override warning on <2.0 in specsseg-outdated-bundler-message
-rw-r--r--spec/support/hax.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/support/hax.rb b/spec/support/hax.rb
index d00bf619a9..663d3527c5 100644
--- a/spec/support/hax.rb
+++ b/spec/support/hax.rb
@@ -10,6 +10,7 @@ end
if ENV["BUNDLER_SPEC_VERSION"]
module Bundler
+ remove_const(:VERSION) if const_defined?(:VERSION)
VERSION = ENV["BUNDLER_SPEC_VERSION"].dup
end
end