Class: Assert::Runner
- Inherits:
-
Object
- Object
- Assert::Runner
- Defined in:
- lib/assert/runner.rb
Instance Method Summary collapse
- #count(type) ⇒ Object
-
#initialize(suite, view) ⇒ Runner
constructor
a Runner runs a suite of tests.
- #run(*args) ⇒ Object
Constructor Details
Instance Method Details
#count(type) ⇒ Object
23 24 25 |
# File 'lib/assert/runner.rb', line 23 def count(type) @suite.count(type) end |
#run(*args) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/assert/runner.rb', line 14 def run(*args) @suite.setup @view.render do benchmark { run_suite } end @suite.teardown count(:failed) + count(:errored) end |