summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-18 21:14:07 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-08-17 23:43:22 -0400
commite18c7b597916ebeaecb4e9addcff878494bbc720 (patch)
tree85d5426f0538a7813c488cea749ac2fbfd16aab2 /spec/support
parent66e5907e9830bc7de270e1699313d73877ba4f17 (diff)
downloadbundler-e18c7b597916ebeaecb4e9addcff878494bbc720.tar.gz
Allow ignoring the compatibilty guard in specs
# Conflicts: # spec/install/bundler_spec.rb # spec/other/compatibility_guard_spec.rb
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/hax.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/hax.rb b/spec/support/hax.rb
index d1cea40922..aee55a0ac9 100644
--- a/spec/support/hax.rb
+++ b/spec/support/hax.rb
@@ -51,3 +51,11 @@ class Object
end
end
end
+
+if ENV["BUNDLER_SPEC_IGNORE_COMPATIBILITY_GUARD"]
+ $LOADED_FEATURES << File.expand_path("../../../bundler/compatibility_guard.rb", __FILE__)
+ $LOADED_FEATURES << File.expand_path("../../../bundler/compatibility_guard", __FILE__)
+ $LOADED_FEATURES << "bundler/compatibility_guard.rb"
+ $LOADED_FEATURES << "bundler/compatibility_guard"
+ require "bundler/compatibility_guard"
+end