test/run-test.rb in racknga-0.9.1 vs test/run-test.rb in racknga-0.9.2

- old
+ new

@@ -1,8 +1,8 @@ #!/usr/bin/env ruby # -# Copyright (C) 2010 Kouhei Sutou <kou@clear-code.com> +# Copyright (C) 2010-2011 Kouhei Sutou <kou@clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. @@ -21,27 +21,22 @@ $KCODE = "u" if RUBY_VERSION < "1.9" require 'pathname' base_dir = Pathname(__FILE__).dirname.parent.expand_path -test_unit_dir = base_dir + "test-unit" -test_unit_lib_dir = test_unit_dir + "lib" rroonga_dir = base_dir.parent + "rroonga" rroonga_ext_dir = rroonga_dir + "ext" + "groonga" rroonga_lib_dir = rroonga_dir + "lib" lib_dir = base_dir + "lib" test_dir = base_dir + "test" -unless File.exist?(test_unit_dir) - test_unit_repository = "http://test-unit.rubyforge.org/svn/trunk/" - system("svn co #{test_unit_repository} #{test_unit_dir}") or exit(false) -end +require "rubygems" +require "bundler/setup" -$LOAD_PATH.unshift(test_unit_lib_dir.to_s) - require 'test/unit' +require 'test/unit/notify' -# ARGV.unshift("--priority-mode") +Test::Unit::Priority.enable $LOAD_PATH.unshift(rroonga_ext_dir.to_s) $LOAD_PATH.unshift(rroonga_lib_dir.to_s) $LOAD_PATH.unshift(lib_dir.to_s)