Class: RSpectre::Runner
- Inherits:
-
Object
- Object
- RSpectre::Runner
- Defined in:
- lib/rspectre/runner.rb
Constant Summary collapse
- EXIT_SUCCESS =
0
Instance Method Summary collapse
-
#initialize ⇒ Runner
constructor
A new instance of Runner.
- #lint ⇒ Object
Constructor Details
#initialize ⇒ Runner
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
#lint ⇒ Object
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 |