Skip to content

Instantly share code, notes, and snippets.

@appbackr
appbackr / watch.rb
Created July 21, 2011 18:59
watchr.rb
$exec = "phpunit"
watch('./(.*).php') { |m| changed(m[0]) }
def changed(file)
#ignore file, just run all cases
path = "appbackr/protected/tests/"
run "cd #{path} && #{$exec} unit/"
end