mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
15 lines
259 B
Ruby
15 lines
259 B
Ruby
require 'pry'
|
|
|
|
class TestCLI < Thor
|
|
def self.to_s
|
|
'Test'
|
|
end
|
|
|
|
default_command :all
|
|
|
|
desc 'all', 'Run all tests'
|
|
def all
|
|
$LOAD_PATH.unshift 'test'
|
|
Dir['test/**/*_test.rb'].map(&File.method(:expand_path)).each(&method(:require))
|
|
end
|
|
end
|