Module: Bacon::StylishTestUnitOutput

Includes:
TestUnitOutput
Defined in:
lib/bacon/bits.rb

Overview

Inspired by gist.github.com/80533

Instance Method Summary collapse

Instance Method Details

#handle_requirement(description) ⇒ Object



40
41
42
43
# File 'lib/bacon/bits.rb', line 40

def handle_requirement(description)
  error = yield
  print error.empty? ? "\e[32m✓ \e[m" : "\e[31m✗ \e[m"
end