Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 430 Bytes
rake = lambda { system "rake; echo; echo #{'-' * 50}; echo" }
rake.call # run once on startup
#watch('spec/(.*)/*_spec\.rb') {|md| system("rspec #{md}")}
#watch('app/(.*)/*\.rb') {|md| system("rspec spec/helpers/*")}
# When any spec, any of the code under spec (or the test helper!) changes, run all tests (via rake)
watch('spec/\w+/.*_spec\.rb', &rake)
watch('spec/spec_helper\.rb', &rake)
watch('app/.*\.rb', &rake)