Skip to content

Commit 497f4b2

Browse files
committed
Update Guardfile for better automatic testing
1 parent 39f731b commit 497f4b2

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Guardfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
notification :off
22

3-
guard 'rake', :task => 'test' do
4-
watch(%r{^manifests\/.+\.pp$})
3+
scope group: :spec
4+
5+
group :spec do
6+
guard :rake, :task => 'test' do
7+
watch(%r{^lib\/.+\.rb$})
8+
watch(%r{^spec\/.+\.rb$})
9+
watch(%r{^manifests\/.+\.pp$})
10+
end
11+
end
12+
13+
group :acceptance do
14+
guard :rake, :task => 'acceptance' do
15+
watch(%r{^spec\/acceptance\/.+\.rb$})
16+
end
517
end

0 commit comments

Comments
 (0)