Module: Bacon
- Extended by:
- SpecDoxOutput
- Defined in:
- lib/bacon.rb
Overview
Copyright © 2007, 2008, 2012 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: KnockOutput, SpecDoxOutput, TapOutput, TestUnitOutput Classes: Context, Error
Constant Summary collapse
- VERSION =
"1.2"
- Counter =
Hash.new(0)
- ErrorLog =
""
Hash.new { |_, name| raise NameError, "no such context: #{name.inspect}" }
- RestrictName =
//
- RestrictContext =
//
- Backtraces =
true
Class Method Summary collapse
- .summary_on_exit ⇒ Object (also: summary_at_exit)
Methods included from SpecDoxOutput
handle_requirement, handle_specification, handle_summary, spaces
Class Method Details
.summary_on_exit ⇒ Object Also known as: summary_at_exit
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/bacon.rb', line 24 def self.summary_on_exit return if Counter[:installed_summary] > 0 @timer = Time.now at_exit { handle_summary if $! raise $! elsif Counter[:errors] + Counter[:failed] > 0 exit 1 end } Counter[:installed_summary] += 1 end |