diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-11-05 16:37:35 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-11-12 13:18:08 +0100 |
commit | be96d7e27fb85d19e2a33ddd52b431c7432e66f9 (patch) | |
tree | 88ce006b5c9f94b9b6da8b922c81e9445cae4f2b | |
parent | acfa0f980f3952064bfbcbd024b1ed51b6b11f2d (diff) | |
download | bundler-be96d7e27fb85d19e2a33ddd52b431c7432e66f9.tar.gz |
Fix `Bundler.require` redefinition warning
-rw-r--r-- | spec/runtime/setup_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index 4a754945b7..d86d1320ea 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -1027,6 +1027,8 @@ end ruby <<-RUBY require '#{lib_dir}/bundler' + bundler_module = class << Bundler; self; end + bundler_module.send(:remove_method, :require) def Bundler.require(path) raise "LOSE" end |