Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 268760b053
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (17 sloc) 0.489 kb
#!/bin/zsh
function cmd() { echo ">> time $@" ; time $@ }
egrep -q 'test_helper|spec_helper' $1
if [ $? -eq 0 ] ; then # GIVE ME THE RAILS
# If we see a running spin server, just push the test file onto it.
# otherwise we'll have to boot up bundler from scratch
$(ps ax | grep -q '[s]pin serve')
if [ $? -eq 0 ] ; then
cmd spin push $1
else
cmd bundle exec ruby -Ilib -Itest $1
fi
else
# No Rails necessary. Whoohoo!
cmd ruby -Ilib -Itest $1
fi
# vim: noet:ft=sh:ts=4:sw=4:
Jump to Line
Something went wrong with that request. Please try again.