Class: Leaks::RSpecRunner

Inherits:
RSpec::Core::Runner
  • Object
show all
Defined in:
lib/leaks/rspec_runner.rb

Class Method Summary collapse

Class Method Details

.run(args, err, out) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/leaks/rspec_runner.rb', line 5

def self.run(args, err, out)
  trap_interrupt
  options = RSpec::Core::ConfigurationOptions.new(args)
  options.parse_options

  unless RSpec::Core::CommandLine.new(options).run(err, out) == 0
    raise RSpecError.new("A test has failed, quitting now. Run again in verbose mode to diagnose the problem")
  end
end