Sha256: 96562b1ca1bd0e0ec0fd2c982f9a78321f9de158e4f858a999ec057de6eb6722

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

#!/usr/bin/env ratch

# Run unit tests

live = ARGV.delete('--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 = argv[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)
    puts "Loading: #{file}"
    load(file)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-2.1.0 task/test
facets-2.1.1 task/test
facets-2.1.2 task/test/general