From: pat eyler Date: 2005-07-15T01:04:26+09:00 Subject: Re: Test::Unit: useful assert and diff for HTML? On 7/14/05, Michael Schuerig wrote: > pat eyler wrote: > > > I don't know about the Test::Unit code, but for highlighting diffs, > > the > > wonderful unit_diff script that comes with ZenTest is perfect. Here's > > an example: > > > > > > $ ts_bigfailure.rb | unit_diff.rb > > Listing 14. Test::Unit output > > $ ruby ts_long.rb > > Loaded suite ts_long > > Started > > F > > Finished in 0.02506 seconds. > > Looks good in principle, but gives me an exception. > > /usr/local/bin/unit_diff.rb:78:in `temp_file': private method `gsub!' > called for nil:NilClass (NoMethodError) > from /usr/local/bin/unit_diff.rb:121 > from /usr/local/bin/unit_diff.rb:95:in `each' > from /usr/local/bin/unit_diff.rb:95 > > Well, it shouldn't be too hard to track this down. Please pass the fix back to zenspider and eric hodel from the seattle.rb -- I'm sure they'd appreciate it. > > Michael > > -- > Michael Schuerig The Fifth Rider of the Apocalypse > mailto:michael@schuerig.de is a programmer. > http://www.schuerig.de/michael/ > > > -- thanks, -pate ------------------------- We are often unable to tell people what they need to know, because they want to know something else, and would therefore only misunderstand what we said - the Raven (George MacDonald, Lilith)