summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-28 12:19:23 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-28 15:37:23 +0100
commit4f0a5d27cb9aa1afe734724d61f2889e2f76d62e (patch)
treec5afdd2b37623d33113b48fc291a9201dd5163b6
parent9bac88a953902e2f4e73ac4650a9692f2c03b172 (diff)
downloadbundler-4f0a5d27cb9aa1afe734724d61f2889e2f76d62e.tar.gz
Don't hide part of backtraces
-rw-r--r--spec/support/helpers.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 1290b46a53..7d1bd65185 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -23,9 +23,7 @@ module Spec
define_method("#{method}!") do |*args, &blk|
send(method, *args, &blk).tap do
unless last_command.success?
- raise RuntimeError,
- "Invoking #{method}!(#{args.map(&:inspect).join(", ")}) failed:\n#{last_command.stdboth}",
- caller.drop_while {|bt| bt.start_with?(__FILE__) }
+ raise "Invoking #{method}!(#{args.map(&:inspect).join(", ")}) failed:\n#{last_command.stdboth}"
end
end
end