From e63682824ef4110152381bdb9b831378fe7baa4c Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 29 Jun 2010 06:39:21 +0000 Subject: Removing tests from library files. They live now in test/unit. --- lib/coderay/encoders/count.rb | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'lib/coderay/encoders/count.rb') diff --git a/lib/coderay/encoders/count.rb b/lib/coderay/encoders/count.rb index f4dd0c8..c28d67f 100644 --- a/lib/coderay/encoders/count.rb +++ b/lib/coderay/encoders/count.rb @@ -1,4 +1,3 @@ -($:.unshift '../..'; require 'coderay') unless defined? CodeRay module CodeRay module Encoders @@ -30,25 +29,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 - tokens = CodeRay.scan <<-RUBY.strip, :ruby -#!/usr/bin/env ruby -# a minimal Ruby program -puts "Hello world!" - RUBY - assert_equal 9, tokens.encode_with(:count) - end - -end \ No newline at end of file -- cgit v1.2.1