Skip to content

Instantly share code, notes, and snippets.

@swalberg
Created January 16, 2012 17:37
Show Gist options
  • Save swalberg/1621956 to your computer and use it in GitHub Desktop.
Save swalberg/1621956 to your computer and use it in GitHub Desktop.
# save some typing from having to run rake test:blah TEST=something, or run an individual test
runt () {
if [ "x$1" == "x" ]; then
echo "runt FILE [what to pass to -n //]";
return;
fi;
if [ "x$2" == "x" ]; then
ruby -Itest $1;
else
ruby -Itest $1 -n "/$2/";
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment