trap errors better
This commit is contained in:
parent
c8ade6557e
commit
86d9ff7fc5
|
@ -159,7 +159,11 @@ module Hydra #:nodoc:
|
|||
|
||||
RSpec.instance_variable_set(:@world, nil)
|
||||
RSpec.instance_variable_set(:@configuration, nil)
|
||||
begin
|
||||
result = RSpec::Core::Runner.run(config, hydra_output, hydra_output)
|
||||
rescue ex
|
||||
return ex.to_s
|
||||
end
|
||||
hydra_output.rewind
|
||||
|
||||
return (result == 1) ? hydra_output.read : ""
|
||||
|
|
Loading…
Reference in New Issue