File: unit_diff.rb

# unit_diff.rb

Path: | lib/unit_diff.rb
Last Update: | Mon Aug 16 23:56:17 -0600 2010

### Required files

tempfile

### Methods

diff massage parse_diff parse_input unit_diff unit_diff

### Public Class methods

unit_diff()

Handy wrapper for UnitDiff#unit_diff.

### Public Instance methods

diff(expect, butwas)
massage(data)
parse_diff(result)

Parses a single diff recording the header and what was expected, and what was actually obtained.

parse_input(input, output)
unit_diff(input=ARGF, output=$stdout)

Scans Test::Unit output `input` looking for comparison failures and makes them easily readable by passing them through diff.

[Validate]