Sha256: f1764e60718e8846b2bfec6e576241279482b2f2eafc647cb953d7ade2ba1383
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 Bytes
Contents
#!/usr/bin/env ratch # Run unit tests main :test do $LOAD_PATH.unshift('test') find = commandline[0] live = commandline.flag?('--live') pure = commandline.flag?('--pure') # pure won't work if live. ARGV.replace([]) # ??? unless live $LOAD_PATH.unshift(File.expand_path('lib')) $LOAD_PATH.unshift(File.expand_path('ext/tmailscanner')) unless pure end if find unless file?(find) find = File.join(find, '**', 'test_*.rb') end else find = 'test/**/test_*.rb' end files = Dir.glob(find) #.map{ |f| File.join('..', f) } #chdir('test') do files.each do |file| next unless file?(file) load file end #end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tmail-1.2.1 | script/test |