diff --git a/README.rdoc b/README.rdoc index 3613f17..4307eed 100644 --- a/README.rdoc +++ b/README.rdoc @@ -14,7 +14,7 @@ OpenCV wrapper for Ruby == FEATURES/PROBLEMS: * Some OpenCV functions are wrapped. -* Ruby 1.8.7, 1.9.2 and OpenCV 2.3 are supported. +* Ruby 1.8.7, 1.9.3 and OpenCV 2.3 are supported. == DEPENDENCIES: diff --git a/test/runner.rb b/test/runner.rb index 2c6d41b..c4f0ac6 100755 --- a/test/runner.rb +++ b/test/runner.rb @@ -2,8 +2,8 @@ # -*- mode: ruby; coding: utf-8-unix -*- require 'test/unit' +src_testdir = File.dirname(File.expand_path(__FILE__)) if Test::Unit.methods.include? :setup_argv - src_testdir = File.dirname(File.expand_path(__FILE__)) srcdir = File.dirname(src_testdir) Test::Unit.setup_argv {|files| if files.empty? @@ -22,9 +22,9 @@ if Test::Unit.methods.include? :setup_argv } end } -elsif Test::Unit.constants.include? 'AutoRunner' - Test::Unit::AutoRunner.run(true, './') +elsif Test::Unit.constants.map {|c| c.to_sym }.include? :AutoRunner + Test::Unit::AutoRunner.run(true, src_testdir) else - raise Error, 'Test runner not found' + raise 'Test runner not found' end