Sha256: f3fb4b2d46cde85d9d124d9416cce6708a83446e7938c01472e7319932ee8d34

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

#!/usr/bin/env ratch

# Run unit tests

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)
    puts "Loading: #{file}"
    load(file)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-2.1.3 task/test/general