if defined?(VEX_TEST) DIRNAME = File.expand_path File.dirname(__FILE__) Dir.chdir(DIRNAME) require "rubygems" APP_ROOT = DIRNAME APP_ENV = "test" # require "active_record" # # require "#{DIRNAME}/initializers/fake_rails.rb" # # initialize the gem and the test runner $:.push "#{DIRNAME}/../lib" if defined?(VEX_AUTO_TEST) require "vex" else require "vex/#{VEX_TEST}" end Dir.glob("#{DIRNAME}/#{VEX_TEST}-tests/**/*.rb").each do |file| load file end # --------------------------------------------------------------------- require 'ruby-debug' require 'mocha' require 'etest' # # run tests Etest.autorun end