diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-26 17:09:06 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:57 +0900 |
commit | 2c262d137c4f679ad1b6305d747e4d116b7c6959 (patch) | |
tree | 492e32e444d72a3bdb4b9a699058e90f9c0a5912 /spec | |
parent | 81a84076c21e89d9e0e1df1b4cea8bf2047b960d (diff) |
[bundler/bundler] Make spec easier to debug
https://github.com/bundler/bundler/commit/156629291e
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/runtime/setup_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb index 51de4eb38a..3866bebb44 100644 --- a/spec/bundler/runtime/setup_spec.rb +++ b/spec/bundler/runtime/setup_spec.rb @@ -833,7 +833,9 @@ end ruby <<-R, :env => { "GEM_PATH" => symlinked_gem_home }, :no_lib => true TracePoint.trace(:class) do |tp| - puts "OMG" if tp.path.include?("bundler") && !tp.path.start_with?("#{File.expand_path("../..", __dir__)}") + if tp.path.include?("bundler") && !tp.path.start_with?("#{File.expand_path("../..", __dir__)}") + puts "OMG. Defining a class from another bundler at \#{tp.path}:\#{tp.lineno}" + end end gem 'bundler', '#{Bundler::VERSION}' require 'bundler/setup' |