-
Notifications
You must be signed in to change notification settings - Fork 9
/
Guardfile
40 lines (25 loc) · 772 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
28
29
30
31
32
33
34
35
36
require 'guard/bundler'
require 'guard/rspec'
notification :growl
# notification :terminal_notifier
group :frontend do
guard 'bundler' do
watch('Gemfile')
# Uncomment next line if Gemfile contain `gemspec' command
watch(/^.+\.gemspec/)
end
end
group :singleruby do
guard 'rspec', :rvm => ['system'], :notification => true do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
end
group :multirubies do
guard 'rspec', :rvm => ['system', '1.9.3', '1.8.7'], :notification => true do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
end