forked from hawknewton/puppet-pulp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
17 lines (15 loc) · 658 Bytes
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
group :puppet_rspec do
guard :rspec,
cmd: 'rake spec_prep;rspec --fail-fast',
spec_paths: ['spec/classes', 'spec/defines', 'spec/unit'],
all_after_pass: true,
all_on_start: true,
focus_on_failed: false do
watch(%r{^spec/classes/shared_.+\.rb}) { 'spec/classes' }
watch(%r{^spec/(.+_spec\.rb)$}) { |m| "spec/#{m[1]}" }
watch('manifests/init.pp') { |m| 'spec/classes/pulp_spec.rb' }
watch(%r{manifests/(.+).pp}) { |m| "spec/classes/#{m[1]}_spec.rb" }
watch(%r{manifests/(.+).pp}) { |m| "spec/defines/#{m[1]}_spec.rb" }
watch(%r{lib/(.+)\.rb}) { |m| "spec/unit/#{m[1]}_spec.rb" }
end
end