Module: Bacon
- Extended by:
- SpecDoxOutput
- Defined in:
- lib/bacon.rb
Overview
Copyright © 2007, 2008 Christian Neukirchen <purl.org/net/chneukirchen>
Bacon is freely distributable under the terms of an MIT-style license. See COPYING or www.opensource.org/licenses/mit-license.php.
Defined Under Namespace
Modules: SpecDoxOutput, TapOutput, TestUnitOutput Classes: Context, Error
Constant Summary collapse
- VERSION =
"0.9"
- Counter =
Hash.new(0)
- ErrorLog =
""
Hash.new { |_, name| raise NameError, "no such context: #{name.inspect}" }
- RestrictName =
//
- RestrictContext =
//
Class Method Summary collapse
Methods included from SpecDoxOutput
handle_requirement, handle_specification, handle_summary
Class Method Details
.summary_on_exit ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/bacon.rb', line 22 def self.summary_on_exit return if Counter[:installed_summary] > 0 at_exit { handle_summary if $! raise $! elsif Counter[:errors] + Counter[:failed] > 0 exit 1 end } Counter[:installed_summary] += 1 end |