diff options
author | murphy <murphy@rubychan.de> | 2010-06-29 06:39:21 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-06-29 06:39:21 +0000 |
commit | e63682824ef4110152381bdb9b831378fe7baa4c (patch) | |
tree | cb28a1fc6ec57c51346ff2de4e390c7c417fb257 /lib/coderay/encoders/text.rb | |
parent | c66ba1145eea6b846cc9f7427c740df5aada6436 (diff) | |
download | coderay-e63682824ef4110152381bdb9b831378fe7baa4c.tar.gz |
Removing tests from library files. They live now in test/unit.
Diffstat (limited to 'lib/coderay/encoders/text.rb')
-rw-r--r-- | lib/coderay/encoders/text.rb | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/lib/coderay/encoders/text.rb b/lib/coderay/encoders/text.rb index c146038..54a00dc 100644 --- a/lib/coderay/encoders/text.rb +++ b/lib/coderay/encoders/text.rb @@ -1,4 +1,3 @@ -($:.unshift '../..'; require 'coderay') unless defined? CodeRay module CodeRay module Encoders @@ -24,7 +23,7 @@ module Encoders } def text_token text, kind - @out << text + super @out << @sep if @sep end @@ -42,24 +41,3 @@ module Encoders end end - -if $0 == __FILE__ - $VERBOSE = true - $: << File.join(File.dirname(__FILE__), '..') - eval DATA.read, nil, $0, __LINE__ + 4 -end - -__END__ -require 'test/unit' - -class CountTest < Test::Unit::TestCase - - def test_count - ruby = <<-RUBY -puts "Hello world!" - RUBY - tokens = CodeRay.scan ruby, :ruby - assert_equal ruby, tokens.encode_with(:text) - end - -end
\ No newline at end of file |