Sha256: 8f533c3948aab0753d33d21fd405e75d63b5ccda7319b3cd36e90d79238c138e
Contents?: true
Size: 863 Bytes
Versions: 9
Compression:
Stored size: 863 Bytes
Contents
if defined?(VEX_TEST) DIRNAME = File.expand_path File.dirname(__FILE__) Dir.chdir(DIRNAME) require "rubygems" require "etest" 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 'mocha' require 'ruby-debug' begin require 'minitest-rg' rescue MissingSourceFile STDERR.puts "'gem install minitest-rg' gives you redgreen minitests" require 'minitest/unit' end # # run tests dlog "etest #{::Etest::VERSION}" Etest.autorun if defined?(::Etest) # MiniTest::Unit.autorun end
Version data entries
9 entries across 9 versions & 1 rubygems