summaryrefslogtreecommitdiff
path: root/test/functional/basic.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-07-04 00:38:27 +0000
committermurphy <murphy@rubychan.de>2011-07-04 00:38:27 +0000
commit6a52b213edf1f146fb72a055466a35fe219e5a0d (patch)
tree2f0b49ff6ecbce2b24fc56d7eb9a2a883136bc5a /test/functional/basic.rb
parent498df2b7654c210c8f47e2757efc33cd94689b57 (diff)
downloadcoderay-6a52b213edf1f146fb72a055466a35fe219e5a0d.tar.gz
cleanups: Page encoder is default for HTML, benchmark KB/s instead of tokens/s
Diffstat (limited to 'test/functional/basic.rb')
-rwxr-xr-xtest/functional/basic.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/basic.rb b/test/functional/basic.rb
index c9879dd..dae7de6 100755
--- a/test/functional/basic.rb
+++ b/test/functional/basic.rb
@@ -64,7 +64,7 @@ class BasicTest < Test::Unit::TestCase
end
def test_highlight
- assert_match '<div class="code"><pre>test</pre></div>', CodeRay.highlight('test', :python)
+ assert_match '<pre>test</pre>', CodeRay.highlight('test', :python)
end
def test_highlight_file
@@ -173,7 +173,7 @@ more code # and another comment, in-line.
def test_encoder_file_extension
assert_nothing_raised do
- assert_equal 'html', CodeRay::Encoders::HTML::FILE_EXTENSION
+ assert_equal 'html', CodeRay::Encoders::Page::FILE_EXTENSION
assert_equal 'cocoa', Milk::FILE_EXTENSION
assert_equal 'cocoa', Milk.new.file_extension
assert_equal 'honeybee', HoneyBee::FILE_EXTENSION