Class: RSpectre::Runner

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

Constant Summary collapse

EXIT_SUCCESS =
0

Instance Method Summary collapse

Constructor Details

#initializeRunner

Returns a new instance of Runner.



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

def initialize(*)
  super
  @rspec_output = StringIO.new
end

Instance Method Details

#lintObject



14
15
16
17
18
19
20
# File 'lib/rspectre/runner.rb', line 14

def lint
  if run_specs.equal?(EXIT_SUCCESS)
    handle_offenses
  else
    exit_with_error
  end
end