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(render = true) ⇒ Object
Constructor Details
Instance Method Details
#count(type) ⇒ Object
28 29 30 |
# File 'lib/assert/runner.rb', line 28 def count(type) @suite.count(type) end |
#run(render = true) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/assert/runner.rb', line 12 def run(render=true) @suite.setup if render # render the view, passing it a callback block to run the test suite @view.render do benchmark { run_suite } end else benchmark { run_suite } end @suite.teardown count(:failed) + count(:errored) end |