summaryrefslogtreecommitdiff
path: root/test/functional/suite.rb
blob: 5490f98353dd05ae1a69f17715d6668e58103101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'test/unit'

$:.unshift File.expand_path('../../../lib', __FILE__)
require 'coderay'

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')
end