Method: RSpec::Core::Reporter#exit_early

Defined in:
lib/rspec/core/reporter.rb

#exit_early(exit_code) ⇒ void

Reports a run that exited early without having run any examples.

Parameters:

  • exit_code (Integer)

    the exit_code to be return by the reporter

[View source]

84
85
86
# File 'lib/rspec/core/reporter.rb', line 84

def exit_early(exit_code)
  report(0) { exit_code }
end