1
0

test.thor 259 B

123456789101112131415
  1. require 'pry'
  2. class TestCLI < Thor
  3. def self.to_s
  4. 'Test'
  5. end
  6. default_command :all
  7. desc 'all', 'Run all tests'
  8. def all
  9. $LOAD_PATH.unshift 'test'
  10. Dir['test/**/*_test.rb'].map(&File.method(:expand_path)).each(&method(:require))
  11. end
  12. end