Skip to content

Instantly share code, notes, and snippets.

@eventualbuddha
Forked from indirect/s.sh
Created August 20, 2010 03:21
Show Gist options
  • Save eventualbuddha/539523 to your computer and use it in GitHub Desktop.
Save eventualbuddha/539523 to your computer and use it in GitHub Desktop.
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