Module: BareTest::Run::Spec
- Defined in:
- lib/baretest/run/spec.rb
Overview
Spec runner is invoked with ‘-f spec` or `–format spec`. This runner will not actually run the tests. It only extracts the descriptions and prints them. Handy if you just want an overview over what a library is supposed to do and be capable of.
Instance Method Summary collapse
Instance Method Details
#run_all ⇒ Object
:nodoc:
18 19 20 21 |
# File 'lib/baretest/run/spec.rb', line 18 def run_all @depth = 0 super end |
#run_suite(suite) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/baretest/run/spec.rb', line 23 def run_suite(suite) return super unless suite.description puts("\n"+' '*@depth+suite.description) @depth += 1 rv = super @depth -= 1 rv end |