Thursday 2 August 2012

Spork and Rpsec and Bash


in .profile
Start Spork if is not runing and pass params the file


function rtest{
if pgrep -f spork; then echo running; else spork &; fi
rspec --drb --color --format doc "$@"
}


rtest spec/requests/whatever

No comments:

Post a Comment