forked from deliveroo/routemaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuardfile
20 lines (18 loc) · 859 Bytes
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
group 'specs', halt_on_fail: true do
guard :rspec, cmd: 'bundle exec rspec --no-profile --tag ~slow', all_after_pass: true do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^routemaster/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch(%r{^routemaster/mixins/.+\.rb$}) { "spec" }
end
guard :rspec, cmd: 'bundle exec rspec --no-profile --tag slow', all_after_pass: false do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^routemaster/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch(%r{^routemaster/mixins/.+\.rb$}) { "spec" }
end
end