lib/test/reckon.rb
# Reports a failure to the Reporter
Reports a failure to the Reporter
Reports a failure to the Reporter
def add_failure(test_description, message)
        filename, line_number, line = extract_context(*caller(3).first.split(/:/, 2))
        $stderr.puts "#{filename}:#{line_number}"
        $stderr.puts "  * #{test_description}"
        $stderr.puts "  tested: #{line.strip}"
        $stderr.puts "  but: #{message}"
        @failures += 1
      end
def add_failure ( test_description , message ) filename , line_number , line = extract_context ( * caller ( 3 ) . first . split ( / : / , 2 ) ) $stderr . puts "#{filename}:#{line_number}" $stderr . puts "  * #{test_description}" $stderr . puts "  tested: #{line.strip}" $stderr . puts "  but: #{message}" @failures += 1 end
Reports a failure to the Reporter
Reports a failure to the Reporter
test_description
message