-
-
Save passalini/9388731 to your computer and use it in GitHub Desktop.
Revisions
-
passalini revised this gist
Apr 9, 2014 . No changes.There are no files selected for viewing
-
waldofe created this gist
Mar 1, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ function zrun() { SPEC_FILE=$1 SPEC_LOG=/tmp/rspec.log if [ $SPEC_FILE ]; then rspec $SPEC_FILE 2>&1 | tee $SPEC_LOG else cat $SPEC_LOG | grep "^rspec" | cut -d ' ' -f 2 | xargs rspec 2>&1 | tee $SPEC_LOG fi }