Class: Spec::Runner::CommandLine

Inherits:
Object
  • Object
show all
Defined in:
lib/spec/runner/command_line.rb

Class Method Summary collapse

Class Method Details

.evented_run(tmp_options = Spec::Runner.options) ⇒ Object Also known as: run



18
19
20
21
22
23
24
25
26
# File 'lib/spec/runner/command_line.rb', line 18

def self.evented_run(tmp_options=Spec::Runner.options)
  EM.run do
    begin
      original_run(tmp_options) 
    ensure
      EM.add_timer(3) {EventMachine::stop}
    end
  end
end