-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuardfile
27 lines (24 loc) · 830 Bytes
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
#
# Lancer avec la commande "guard -n f" pour eviter les notifications
# qui ne fonctionnent pas sous MacOS
#
# notification :growl_notify
# notification :gntp
# notification :growl
group :rspec, halt_on_fail: true do
guard :rspec, cmd: 'bundle exec rspec', title: 'service-laclasse-start-box',
all_after_pass: false, all_on_start: false, failed_mode: :keep do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch(%r{^api/(.+)\.rb$}) { |m| "spec/api/#{m[1]}_spec.rb" }
watch(%r{^objects/(.+)\.rb$}) { |m| "spec/objects/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
end
end
group :frontend do
guard :bundler do
watch('Gemfile')
end
end