From fa975bbf5d40644d987887b4cf273a3f02612f03 Mon Sep 17 00:00:00 2001 From: murphy Date: Sat, 1 May 2010 01:31:56 +0000 Subject: Direct Streaming! See #142 and Changes.textile. --- test/functional/basic.rb | 6 +++--- test/functional/for_redcloth.rb | 6 +++--- test/functional/suite.rb | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/functional/basic.rb b/test/functional/basic.rb index 150089e..013c0c4 100755 --- a/test/functional/basic.rb +++ b/test/functional/basic.rb @@ -14,12 +14,12 @@ class BasicTest < Test::Unit::TestCase RUBY_TEST_TOKENS = [ ['puts', :ident], [' ', :space], - [:open, :string], + [:begin_group, :string], ['"', :delimiter], ['Hello, World!', :content], ['"', :delimiter], - [:close, :string] - ] + [:end_group, :string] + ].flatten def test_simple_scan assert_nothing_raised do assert_equal RUBY_TEST_TOKENS, CodeRay.scan(RUBY_TEST_CODE, :ruby).to_ary diff --git a/test/functional/for_redcloth.rb b/test/functional/for_redcloth.rb index a1c3100..a8a737a 100644 --- a/test/functional/for_redcloth.rb +++ b/test/functional/for_redcloth.rb @@ -1,5 +1,5 @@ require 'test/unit' -$: << 'lib' +$:.unshift 'lib' require 'coderay' begin @@ -14,11 +14,11 @@ class BasicTest < Test::Unit::TestCase def test_for_redcloth require 'coderay/for_redcloth' - assert_equal "

puts "Hello, World!"

", + assert_equal "

puts "Hello, World!"

", RedCloth.new('@[ruby]puts "Hello, World!"@').to_html assert_equal <<-BLOCKCODE.chomp,
-
puts "Hello, World!"
+
puts "Hello, World!"
BLOCKCODE RedCloth.new('bc[ruby]. puts "Hello, World!"').to_html diff --git a/test/functional/suite.rb b/test/functional/suite.rb index 039ab47..97dd330 100755 --- a/test/functional/suite.rb +++ b/test/functional/suite.rb @@ -2,7 +2,7 @@ require 'test/unit' MYDIR = File.dirname(__FILE__) -$: << 'lib' +$:.unshift 'lib' require 'coderay' puts "Running basic CodeRay #{CodeRay::VERSION} tests..." -- cgit v1.2.1