summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Schwyn <schwyn@bitcetera.com>2017-02-08 23:59:11 +0100
committerSven Schwyn <schwyn@bitcetera.com>2017-02-08 23:59:11 +0100
commit2c1ffb86763d351b0cfc7843e3bf94ea54b94766 (patch)
tree6844445ca231e026965a5d67e659abc081bec81b
parent2dfb263b0f90a1d30b04cd13263428137e5ef92c (diff)
downloadbundler-2c1ffb86763d351b0cfc7843e3bf94ea54b94766.tar.gz
Hack to work around rspec-mocks 3.5 broken on Ruby 1.8
-rw-r--r--spec/spec_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 53b7527545..297d81f531 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -103,6 +103,14 @@ RSpec.configure do |config|
config.before :all do
build_repo1
+ # HACK: necessary until rspec-mocks > 3.5.0 is used
+ # see https://github.com/bundler/bundler/pull/5363#issuecomment-278089256
+ if RUBY_VERSION < "1.9"
+ FileUtils.module_eval do
+ alias_method :mkpath, :mkdir_p
+ module_function :mkpath
+ end
+ end
end
config.before :each do