diff options
author | murphy <murphy@rubychan.de> | 2011-02-28 23:10:25 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-02-28 23:10:25 +0000 |
commit | 4d8afef1c46d1db99a7c71bc71906317441a90c3 (patch) | |
tree | 18bf4a476168de72959705aae7ff6a0ef6a4d2a5 /test/unit/suite.rb | |
parent | fa8b580bfcf1082ac671acde60c4205681dec1dd (diff) | |
download | coderay-4d8afef1c46d1db99a7c71bc71906317441a90c3.tar.gz |
Added lots of tests for Plugin and other helper classes.
Diffstat (limited to 'test/unit/suite.rb')
-rwxr-xr-x | test/unit/suite.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/suite.rb b/test/unit/suite.rb index 845c5b2..769b6cc 100755 --- a/test/unit/suite.rb +++ b/test/unit/suite.rb @@ -1,13 +1,13 @@ require 'test/unit' $:.unshift 'lib' -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 vhdl' puts "Running CodeRay unit tests: #{suite.join(', ')}" helpers = %w(file_type word_list tokens) for test_case in helpers + (suite - helpers) - load File.join(MYDIR, test_case + '.rb') + load File.join(mydir, test_case + '.rb') end |