update Guardfile template

This commit is contained in:
John Bintz 2011-08-24 10:16:00 -04:00
parent 001b14c252
commit a4acf9e783
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,5 @@
Use Guard with Hydra and get super-parallel test execution! Awesome!
Options:
* `:runner_log`: The location of the runner log where output is printed

View File

@ -1,4 +1,10 @@
guard 'hydra' do
# All spec files
watch(%r{spec/**/*_spec.rb})
watch(%r{^spec/**/*_spec.rb$})
# All lib files
watch(%r{^lib/(.*)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
# All app files for a Rails app
watch(%r{^app/(.*)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
end