Created
April 7, 2014 14:15
-
-
Save itsthejb/10021125 to your computer and use it in GitHub Desktop.
Pre-commit hook Grep for focussed Specta tests
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
#!/bin/bash | |
GREP_OUTPUT=`grep -R 'fdescribe(\|fcontext(\|fexample(\|fspecify(' Tests` | |
if [ ! -z "$GREP_OUTPUT" ]; then | |
echo "Remove focussed specs before commiting." | |
echo $GREP_OUTPUT | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NB: Rename
.git/hooks/pre-commit