Last active
May 31, 2018 22:32
-
-
Save seven1m/666cf3f1f128119ad210 to your computer and use it in GitHub Desktop.
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 | |
# Redirect output to stderr. | |
exec 1>&2 | |
egrep -r --exclude=spec/spec_helper.rb ":focus|focus:|fdescribe|fcontext|fit ['\"]" spec | |
if [[ $? == 0 ]]; then | |
echo "Thou must not :focus" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment