Class: Tack::Formatters::BasicSummary
- Inherits:
-
Object
- Object
- Tack::Formatters::BasicSummary
- Includes:
- Middleware
- Defined in:
- lib/tack/formatters/basic_summary.rb
Instance Method Summary collapse
-
#initialize(app) ⇒ BasicSummary
constructor
A new instance of BasicSummary.
- #run_suite(tests) ⇒ Object
Methods included from Middleware
Constructor Details
#initialize(app) ⇒ BasicSummary
Returns a new instance of BasicSummary.
8 9 10 |
# File 'lib/tack/formatters/basic_summary.rb', line 8 def initialize(app) @app = app end |
Instance Method Details
#run_suite(tests) ⇒ Object
12 13 14 15 16 |
# File 'lib/tack/formatters/basic_summary.rb', line 12 def run_suite(tests) returning @app.run_suite(tests) do |results| puts "%d tests, %d failures, %d pending" % [results.values.flatten.length, results[:failed].length, results[:pending].length] end end |