obey rspec backtrace cleaner on errors

This commit is contained in:
John Bintz 2011-08-07 13:03:36 -04:00
parent bde81449dc
commit ff803d6d3a
1 changed files with 1 additions and 1 deletions

View File

@ -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