-
-
Save warmwaffles/0e8c27e114940f2f69cf to your computer and use it in GitHub Desktop.
Minitest runner without a lot of cruft
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Put in ~/bin as ~/bin/m and make it executable | |
$LOAD_PATH.unshift('lib', 'spec', 'test') | |
ARGV.each do |path| | |
if File.directory?(path) | |
dir = path.gsub(/\/+\Z/, '') | |
Dir.glob("#{dir}/**/*_{spec,test}.rb").each { |f| load(f) } | |
else | |
load(path) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment