Sha256: 6aac7a25c24bbe7ed065c0bfc24a524031f6b247f7d78e34f770c9c3a992dd5c
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
require 'spec/runner/option_parser' require 'rubygems' require 'eventmachine' module Spec module Runner class CommandLine def self.run(tmp_options=Spec::Runner.options) orig_options = Spec::Runner.options Spec::Runner.use tmp_options tmp_options.run_examples ensure Spec::Runner.use orig_options end def self.evented_run(tmp_options=Spec::Runner.options) puts "running evented run" EM.run do begin original_run(tmp_options) ensure EM.add_timer(3) {EventMachine::stop} end end end class << self alias :original_run :run alias :run :evented_run end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newbamboo-evented-rspec-1.1.12 | lib/spec/runner/command_line.rb |