diff options
author | murphy <murphy@rubychan.de> | 2011-03-07 22:44:28 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-03-07 22:44:28 +0000 |
commit | 5803d382b3d3f053eceba892d3de2649060840a2 (patch) | |
tree | 182d22a9713e60abc23c84ed8cffe2d295998bf6 /test/functional/suite.rb | |
parent | 0eadffaa8754af81e7cb946449c45a44bd7ee552 (diff) | |
download | coderay-5803d382b3d3f053eceba892d3de2649060840a2.tar.gz |
added more basic tests, cleanups
Diffstat (limited to 'test/functional/suite.rb')
-rwxr-xr-x | test/functional/suite.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/suite.rb b/test/functional/suite.rb index 4189953..6d795c0 100755 --- a/test/functional/suite.rb +++ b/test/functional/suite.rb @@ -2,12 +2,12 @@ require 'test/unit' $:.unshift 'lib' require 'coderay' -MYDIR = File.dirname(__FILE__) -suite = Dir[File.join(MYDIR, '*.rb')]. +mydir = File.dirname(__FILE__) +suite = Dir[File.join(mydir, '*.rb')]. map { |tc| File.basename(tc).sub(/\.rb$/, '') } - %w'suite for_redcloth' puts "Running basic CodeRay #{CodeRay::VERSION} tests: #{suite.join(', ')}" for test_case in suite - load File.join(MYDIR, test_case + '.rb') + load File.join(mydir, test_case + '.rb') end |