From: Brian Candler Date: 2007-04-11T14:50:29+09:00 Subject: Re: The unit test that won't. On Wed, Apr 11, 2007 at 02:24:37PM +0900, Phillip Gawlowski wrote: > def test_textformatting > FORMATTING_STRINGS.each do |html, textile| > test_html = ClothRed.new(html) > test_html.to_textile > assert_equal(textile,test_html) Hmm, it looks like test_html is not a string here, but some other sort of object, so did you mean assert_equal(textfile, test_html.to_s) ? or else result = test_html.to_textile assert_equal(textile, result) ? It depends whether your 'to_textile' method really changes the internal state of your ClothRed object, or whether its return value is the thing you're interested in checking. B.