test/test-bin.rb in erubis-1.0.1 vs test/test-bin.rb in erubis-1.1.0

- old
+ new

@@ -1,8 +1,8 @@ ## ## $Rev: 3 $ -## $Release: 1.0.1 $ +## $Release: 1.1.0 $ ## $Date: 2006-01-31 12:54:23 +0900 (Tue, 31 Jan 2006) $ ## testdir = File.dirname(File.expand_path(__FILE__)) libdir = File.dirname(testdir) + '/lib' @@ -18,11 +18,11 @@ end require 'test/unit' #require 'test/unit/ui/console/testrunner' -require 'assert-diff' +require 'assert-text-equal' require 'yaml' require 'tempfile' require 'erubis' @@ -67,16 +67,16 @@ command = "ruby #{$script} #{@options} #{@filename}" output = `#{command}` ensure File.unlink(@filename) if @filename && test(?f, @filename) end - assert_equal_with_diff(@expected, output) + assert_text_equal(@expected, output) end def test_version @options = '-v' - @expected = (("$Release: 1.0.1 $" =~ /[.\d]+/) && $&) + "\n" + @expected = (("$Release: 1.1.0 $" =~ /[.\d]+/) && $&) + "\n" @filename = false _test() end