mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
259 B
16 lines
259 B
11 years ago
|
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
|