move test/unit stuff elsewhere
This commit is contained in:
parent
f5c82a727a
commit
2c79435c2f
|
@ -1,7 +1,3 @@
|
||||||
require 'test/unit'
|
|
||||||
require 'test/unit/testresult'
|
|
||||||
Test::Unit.run = true
|
|
||||||
|
|
||||||
module Hydra #:nodoc:
|
module Hydra #:nodoc:
|
||||||
# Hydra class responsible for running test files.
|
# Hydra class responsible for running test files.
|
||||||
#
|
#
|
||||||
|
@ -120,6 +116,9 @@ module Hydra #:nodoc:
|
||||||
# Run all the Test::Unit Suites in a ruby file
|
# Run all the Test::Unit Suites in a ruby file
|
||||||
def run_test_unit_file(file)
|
def run_test_unit_file(file)
|
||||||
begin
|
begin
|
||||||
|
require 'test/unit'
|
||||||
|
require 'test/unit/testresult'
|
||||||
|
Test::Unit.run = true
|
||||||
require file
|
require file
|
||||||
rescue LoadError => ex
|
rescue LoadError => ex
|
||||||
trace "#{file} does not exist [#{ex.to_s}]"
|
trace "#{file} does not exist [#{ex.to_s}]"
|
||||||
|
|
Loading…
Reference in New Issue