Skip to content

Instantly share code, notes, and snippets.

@trashhalo
Created October 22, 2014 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trashhalo/da0e58a1b3bea4d8e9d0 to your computer and use it in GitHub Desktop.
Save trashhalo/da0e58a1b3bea4d8e9d0 to your computer and use it in GitHub Desktop.
ruby test_dir
function test_dir {
for i in `find $1 -type f|grep _test.rb`; do echo "$(tput bold)> $i$(tput sgr0)" && bundle exec ruby -Itest $i; done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment