summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-06-29 06:28:24 +0000
committermurphy <murphy@rubychan.de>2010-06-29 06:28:24 +0000
commit0aebfa032c71cb4086fec6897a3cbb139e9befe4 (patch)
tree7decf49dff8b0b5a2d466312a0833a00a591c504
parent4dac54356cdf31df2ee0f280fc7c4afc3d0e213d (diff)
downloadcoderay-0aebfa032c71cb4086fec6897a3cbb139e9befe4.tar.gz
Cleaning up functional tests: Automatically load all files in the folder.
-rwxr-xr-xtest/functional/suite.rb9
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