Class: RSpec::Core::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/praegustator.rb

Class Method Summary collapse

Class Method Details

.run_patched(args, err = $stderr, out = $stdout) ⇒ Object



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/praegustator.rb', line 67

def self.run_patched(args, err=$stderr, out=$stdout)
  trap_interrupt
  options = ConfigurationOptions.new(args)
  options.parse_options

  if options.options[:drb]
    require 'rspec/core/drb_command_line'
    begin
      DRbCommandLine.new(options).run(err, out)
    rescue DRb::DRbConnError
      CommandLine.new(options).run(err, out)
    end
  else
    CommandLine.new(options).run(err, out)
  end
ensure
  #RSpec.reset
end