aboutsummaryrefslogtreecommitdiff
path: root/Guardfile
blob: 89ec00575c09556a3403f2811a77f06c03d58bb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'bundler' do
  watch('Gemfile')
  # Uncomment next line if Gemfile contain `gemspec' command
  watch(/^.+\.gemspec/)
end

guard 'rspec' do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})  { |m| "spec/unit/#{m[1]}/" }
  watch('spec/spec_helper.rb')  { "spec" }
end