Sha256: 502d4b78b6ea1388bb86834480103b51c635281fcb73fb070898fc819063ffc0
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
#!/usr/bin/env ruby # Run unit tests def test live = ARGV.include?('--live') unless live $LOAD_PATH.unshift(File.expand_path('lib/core')) $LOAD_PATH.unshift(File.expand_path('lib/more')) end puts "Ruby Version: #{RUBY_VERSION}" if find = ARGV.select{|e| e !~ /^[-]/ }[0] unless file?(find) find = File.join(find, '**', 'test_*.rb') end else find = 'test/**/test_*.rb' end files = Dir.glob(find) files.each do |file| next if File.directory?(file) begin puts "Loading: #{file}" if $DEBUG load(file) rescue LoadError puts "Error loading: #{file}" end end end # Go! if $0 == __FILE__ test end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reap-9.2.0 | data/reap/build/tasks/task/test |
reap-9.2.1 | data/reap/build/tasks/task/test |