File: suite.rb

package info (click to toggle)
coderay 1.1.3-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,372 kB
  • sloc: ruby: 9,987; makefile: 14; sh: 2; python: 1
file content (16 lines) | stat: -rw-r--r-- 465 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'simplecov' if RUBY_VERSION >= '1.9'
require 'test/unit'

$VERBOSE = $CODERAY_DEBUG = true
$:.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