move test/unit stuff elsewhere

This commit is contained in:
John Bintz 2011-08-03 18:36:03 -04:00
parent f5c82a727a
commit 2c79435c2f
1 changed files with 3 additions and 4 deletions

View File

@ -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}]"