summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-26 17:09:06 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-05 09:25:42 +0200
commit156629291e003da57c85fcdda4199da0fb07833a (patch)
tree398f3511bbcb7b1477cedd8f20f30a3168d5d899
parent9381dd20e53a12c2cdf850ba5d48b6de574538b5 (diff)
downloadbundler-156629291e003da57c85fcdda4199da0fb07833a.tar.gz
Make spec easier to debug
-rw-r--r--spec/runtime/setup_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index 51de4eb38a..3866bebb44 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/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'