-
-
Save eventualbuddha/539523 to your computer and use it in GitHub Desktop.
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 characters
function s -d "Easy spec running" | |
if grep -q "Rspec.configure" spec/spec_helper.rb | |
echo "rspec2!" | |
if test -z "$argv" | |
rspec -fs -c spec | |
else | |
rspec -fs -c $argv | |
end | |
else | |
echo "rspec1!" | |
if [ -z "$argv" ] | |
spec _1.3.0_ -fs -c spec | |
else | |
spec _1.3.0_ -fs -c $argv | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment