From 6a52b213edf1f146fb72a055466a35fe219e5a0d Mon Sep 17 00:00:00 2001 From: murphy Date: Mon, 4 Jul 2011 00:38:27 +0000 Subject: cleanups: Page encoder is default for HTML, benchmark KB/s instead of tokens/s --- test/executable/suite.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/executable') diff --git a/test/executable/suite.rb b/test/executable/suite.rb index ef2ebb3..37acab9 100644 --- a/test/executable/suite.rb +++ b/test/executable/suite.rb @@ -1,4 +1,5 @@ require 'test/unit' +require 'rubygems' unless defined? Gem require 'shoulda-context' require 'pathname' @@ -100,7 +101,7 @@ class TestCodeRayExecutable < Test::Unit::TestCase source = File.read source_file - pre = %r{
]*>(.*?)
}m + pre = %r{
(.*?)
}m tag = /<[^>]*>/ should 'not throw an error' do @@ -155,7 +156,7 @@ class TestCodeRayExecutable < Test::Unit::TestCase source = File.read source_file - pre = %r{
]*>(.*?)
}m + pre = %r{
(.*?)
}m tag_class = /]*>/ should 'respect the file extension and highlight the input as Python' do @@ -170,7 +171,7 @@ class TestCodeRayExecutable < Test::Unit::TestCase source = File.read source_file - pre = %r{
]*>(.*?)
}m + pre = %r{
(.*?)
}m tag_class = /]*>/ should 'ignore the file extension and highlight the input as Ruby' do -- cgit v1.2.1