11 lines
249 B
Ruby
11 lines
249 B
Ruby
guard 'hydra' do
|
|
# All spec files
|
|
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
|