So I somehow managed to botch my Autotest installation I described in
this tutorial. After spending many hours trying to get it back up and running again, I've decided it's just not worth it. Here's a ghetto bash script for semi-auto testing. You just have to press any key and it'll run the test.
test.sh
#!/bin/bash
# Our ghetto auto-testish thing. User presses any key to test,
# Ctrl-C to get out
function hold(){
read -n 1 -s
}
function do_test(){
printf "\nTesting..."
bundle exec rspec spec/
printf "\nPress any key to test... \n"
hold
do_test
}
do_test
September 25, 2011