summaryrefslogtreecommitdiff
path: root/Guardfile
blob: b5c729860eff7612fb8aabd7684aeae90b27efed (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', :version => 2 do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { "spec" }
end