Sha256: 853254fed6a0f0cb534273d501fe6baed0297ff519902fa2c97a25b8f60f2c82
Contents?: true
Size: 777 Bytes
Versions: 5
Compression:
Stored size: 777 Bytes
Contents
here = File.expand_path(File.dirname(__FILE__)) PROJ_ROOT = File.expand_path("#{here}/..") $: << "#{PROJ_ROOT}/lib" require 'test/unit' require 'fileutils' require 'find' require 'yaml' require 'ostruct' require "#{here}/constructor" class Test::Unit::TestCase include FileUtils def path_to(file) File.expand_path(File.dirname(__FILE__)) + file end def not_done flunk "IMPLEMENT ME" end alias :implement_me :not_done def poll(time_limit) (time_limit * 10).to_i.times do return true if yield sleep 0.1 end return false end def self.method_added(msym) # Prevent duplicate test methods if msym.to_s =~ /^test_/ @_tracked_tests ||= {} raise "Duplicate test #{msym}" if @_tracked_tests[msym] @_tracked_tests[msym] = true end end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
minilab-1.1.0-x86-mswin32-60 | vendor/diy-1.1.1/test/test_helper.rb |
diy-1.0.2 | test/test_helper.rb |
diy-1.0.1 | test/test_helper.rb |
diy-1.0.3 | test/test_helper.rb |
diy-1.1 | test/test_helper.rb |