Module: RSpec::Risky::RSpecCli

Defined in:
lib/rspec/risky/rspec_cli.rb

Defined Under Namespace

Modules: ParserPatch, RunnerPatch

Class Method Summary collapse

Class Method Details

.installObject



38
39
40
41
42
43
44
45
46
# File 'lib/rspec/risky/rspec_cli.rb', line 38

def install
  return if @installed

  ::RSpec::Core::Configuration.add_setting :risky_exit_code
  ::RSpec::Core::Parser.prepend(ParserPatch)
  ::RSpec::Core::Runner.prepend(RunnerPatch)

  @installed = true
end