Module: Bacon::KnockOutput

Defined in:
lib/mac_bacon.rb

Instance Method Summary collapse

Instance Method Details

#handle_requirement_begin(description) ⇒ Object



105
106
107
# File 'lib/mac_bacon.rb', line 105

def handle_requirement_begin(description)
  ErrorLog.replace ""
end

#handle_requirement_end(error) ⇒ Object



109
110
111
112
113
114
115
116
# File 'lib/mac_bacon.rb', line 109

def handle_requirement_end(error)
  if error.empty?
    puts "ok - %s" % [description]
  else
    puts "not ok - %s: %s" % [description, error]
    puts ErrorLog.strip.gsub(/^/, '# ')  if Backtraces
  end
end

#handle_specification_begin(name) ⇒ Object



102
# File 'lib/mac_bacon.rb', line 102

def handle_specification_begin(name); end

#handle_specification_endObject



103
# File 'lib/mac_bacon.rb', line 103

def handle_specification_end        ; end

#handle_summaryObject



118
# File 'lib/mac_bacon.rb', line 118

def handle_summary;  end