Class: RSpectre::Runner

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

Constant Summary collapse

EXIT_SUCCESS =
0

Instance Method Summary collapse

Instance Method Details

#lintObject



9
10
11
12
13
14
15
# File 'lib/rspectre/runner.rb', line 9

def lint
  if runner.run_specs(RSpec.world.ordered_example_groups).equal?(EXIT_SUCCESS)
    handle_offenses
  else
    exit_with_error
  end
end