forked from berkmancenter/corpusbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
13 lines (13 loc) · 773 Bytes
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
guard :rspec, cmd: 'bundle exec rspec' do
watch('spec/spec_helper.rb') { "spec" }
watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/api/(.+)/(.+)\.rb$}) { |m| "spec/api/#{m[1]}/#{m[2]}_spec.rb" }
watch(%r{^spec/api/v1/.+\.rb$})
watch(%r{^app/actions/(.+)/(.+)\.rb$}) { |m| "spec/actions/#{m[1]}/#{m[2]}_spec.rb" }
watch(%r{^spec/actions/(.+)/(.+)\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
end