obey rspec backtrace cleaner on errors
This commit is contained in:
parent
bde81449dc
commit
ff803d6d3a
|
@ -162,7 +162,7 @@ module Hydra #:nodoc:
|
||||||
begin
|
begin
|
||||||
result = RSpec::Core::Runner.run(config, @hydra_output, @hydra_output)
|
result = RSpec::Core::Runner.run(config, @hydra_output, @hydra_output)
|
||||||
rescue Exception => ex
|
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
|
end
|
||||||
@hydra_output.rewind
|
@hydra_output.rewind
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue