Sha256: 08931a78e760a70dc525b2ac5f3b1a72feeea090ed7ab76e64e8ba7ee72e6e3a
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
#!/usr/bin/env ratch # Run unit tests puts "Ruby Version: #{RUBY_VERSION}" live = commandline.flag?('--live') unless live $LOAD_PATH.unshift(File.expand_path('lib/methods')) $LOAD_PATH.unshift(File.expand_path('lib/core')) $LOAD_PATH.unshift(File.expand_path('lib/more')) end main :test do if find = commandline[0] unless file?(find) find = File.join(find, '**', 'test_*.rb') end else find = 'test/**/test_*.rb' end Dir.glob(find).each do |file| next if dir?(file) begin puts "Loading: #{file}" if $DEBUG load(file) rescue LoadError puts "Error loading: #{file}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-2.2.1 | task/test/whole |
facets-2.2.0 | task/test/general |