From ff803d6d3ae9f39854c767036553bf8ee814002f Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 7 Aug 2011 13:03:36 -0400 Subject: [PATCH] obey rspec backtrace cleaner on errors --- lib/hydra/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hydra/runner.rb b/lib/hydra/runner.rb index c3c8b4f..5b19db6 100644 --- a/lib/hydra/runner.rb +++ b/lib/hydra/runner.rb @@ -162,7 +162,7 @@ module Hydra #:nodoc: begin result = RSpec::Core::Runner.run(config, @hydra_output, @hydra_output) rescue Exception => ex - return ex.to_s + "\n" + ex.backtrace.join("\n") + return ex.to_s + "\n" + ex.backtrace.reject { |line| RSpec.configuration.cleaned_from_backtrace?(line) }.join("\n") end @hydra_output.rewind