module Bacon::SpecDoxOutput
Overrides the SpecDoxzRtput to provide colored output by default
Based on github.com/zen-cms/Zen-Core and subsequently modified which is available under the MIT License. Thanks YorickPeterse!
Public Instance Methods
handle_specification(name) { || ... }
click to toggle source
# File lib/pretty_bacon/spec_dox_output.rb, line 12 def handle_specification(name) if @needs_first_put @needs_first_put = false puts end @specs_depth = @specs_depth || 0 puts spaces + name @specs_depth += 1 yield @specs_depth -= 1 puts if @specs_depth.zero? end