Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Fix Bundler.require redefinition warning
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Nov 7, 2019
1 parent 510ed3e commit 4891cd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/runtime/setup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,8 @@ def clean_load_path(lp)

ruby <<-RUBY
require '#{lib_dir}/bundler'
bundler_module = class << Bundler; self; end
bundler_module.remove_method(:require)
def Bundler.require(path)
raise "LOSE"
end
Expand Down

0 comments on commit 4891cd5

Please sign in to comment.