blob: be32090e5e48c7d1a1239cd78705e8cc57085c14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# use `guard start -n f` to disable notifications
# or set the environment variable GUARD_NOTIFY=false
notification :libnotify,
:display_message => true,
:timeout => 5, # in seconds
:append => false,
:transient => true,
:urgency => :critical
guard :test do
watch(%r{^lib/(.+)\.rb$}) do |m|
"test/#{m[1]}_test.rb"
end
watch(%r{^test.+_test\.rb$})
watch('test/test_helper.rb') do
"test"
end
end
|