Module: Bacon::KnockOutput

Defined in:
lib/mac_bacon.rb

Instance Method Summary collapse

Instance Method Details

#handle_requirement_begin(description) ⇒ Object



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

def handle_requirement_begin(description)
  ErrorLog.replace ""
end

#handle_requirement_end(error) ⇒ Object



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

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



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

def handle_specification_begin(name); end

#handle_specification_endObject



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

def handle_specification_end        ; end

#handle_summaryObject



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

def handle_summary;  end