diff options
author | murphy <murphy@rubychan.de> | 2010-06-29 06:28:24 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-06-29 06:28:24 +0000 |
commit | 0aebfa032c71cb4086fec6897a3cbb139e9befe4 (patch) | |
tree | 7decf49dff8b0b5a2d466312a0833a00a591c504 /test/functional/suite.rb | |
parent | 4dac54356cdf31df2ee0f280fc7c4afc3d0e213d (diff) | |
download | coderay-0aebfa032c71cb4086fec6897a3cbb139e9befe4.tar.gz |
Cleaning up functional tests: Automatically load all files in the folder.
Diffstat (limited to 'test/functional/suite.rb')
-rwxr-xr-x | test/functional/suite.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/suite.rb b/test/functional/suite.rb index 3917689..4189953 100755 --- a/test/functional/suite.rb +++ b/test/functional/suite.rb @@ -1,12 +1,13 @@ require 'test/unit' +$:.unshift 'lib' +require 'coderay' MYDIR = File.dirname(__FILE__) +suite = Dir[File.join(MYDIR, '*.rb')]. + map { |tc| File.basename(tc).sub(/\.rb$/, '') } - %w'suite for_redcloth' -$:.unshift 'lib' -require 'coderay' -puts "Running basic CodeRay #{CodeRay::VERSION} tests..." +puts "Running basic CodeRay #{CodeRay::VERSION} tests: #{suite.join(', ')}" -suite = %w(basic examples load_plugin_scanner word_list) for test_case in suite load File.join(MYDIR, test_case + '.rb') end |