summaryrefslogtreecommitdiff
path: root/test/executable
diff options
context:
space:
mode:
Diffstat (limited to 'test/executable')
-rw-r--r--test/executable/suite.rb7
1 files changed, 4 insertions, 3 deletions
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{<pre [^>]*>(.*?)</pre>}m
+ pre = %r{<td class="code"><pre>(.*?)</pre>}m
tag = /<[^>]*>/
should 'not throw an error' do
@@ -155,7 +156,7 @@ class TestCodeRayExecutable < Test::Unit::TestCase
source = File.read source_file
- pre = %r{<pre [^>]*>(.*?)</pre>}m
+ pre = %r{<td class="code"><pre>(.*?)</pre>}m
tag_class = /<span 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{<pre [^>]*>(.*?)</pre>}m
+ pre = %r{<td class="code"><pre>(.*?)</pre>}m
tag_class = /<span class="([^>"]*)"?[^>]*>/
should 'ignore the file extension and highlight the input as Ruby' do