diff options
Diffstat (limited to 'spec/support/helpers.rb')
-rw-r--r-- | spec/support/helpers.rb | 4 |
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 |