-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGuardfile
More file actions
17 lines (13 loc) · 761 Bytes
/
Guardfile
File metadata and controls
17 lines (13 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'rspec', :version => 2, :notification => false do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
watch(%r{^spec/acceptance/.+\.feature})
watch(%r{^spec/acceptance/.+_steps\.rb}) { "spec/acceptance" }
end