Module: Tack::Middleware
- Included in:
- Formatters::BasicSummary, Formatters::PrintFailures, Formatters::Profiler, Formatters::ProgressBar, Formatters::TotalTime
- Defined in:
- lib/tack/middleware.rb
Instance Method Summary collapse
-
#returning(value) {|value| ... } ⇒ Object
not necessary for the middleware API, but handy for implementing middleware methods.
- #run_suite(tests) ⇒ Object
- #run_test(file, description) ⇒ Object
Instance Method Details
#returning(value) {|value| ... } ⇒ Object
not necessary for the middleware API, but handy for implementing middleware methods
15 16 17 18 |
# File 'lib/tack/middleware.rb', line 15 def returning(value) yield(value) value end |
#run_suite(tests) ⇒ Object
5 6 7 |
# File 'lib/tack/middleware.rb', line 5 def run_suite(tests) @app.run_suite(tests) end |
#run_test(file, description) ⇒ Object
9 10 11 |
# File 'lib/tack/middleware.rb', line 9 def run_test(file, description) @app.run_test(file, description) end |