# File lib/deep_test/spec/work_unit.rb, line 8 def run # Dup options here to avoid clobbering the reporter on someone # elses options reference (Such as ExampleGroupRunner) original_options = ::Spec::Runner.options ::Spec::Runner.use ::Spec::Runner.options.dup ::Spec::Runner.options.reporter = ResultReporter.new(@identifier) result = run_without_deadlock_protection result = run_without_deadlock_protection if result.failed_due_to_deadlock? result = result.deadlock_result if result.failed_due_to_deadlock? result ensure ::Spec::Runner.use original_options end
Generated with the Darkfish Rdoc Generator 2.