2012-01-03 13:58:51 +00:00
|
|
|
# A sample Guardfile
|
|
|
|
# More info at https://github.com/guard/guard#readme
|
2011-11-04 15:51:22 +00:00
|
|
|
|
2012-01-03 13:58:51 +00:00
|
|
|
guard 'rspec', :version => 2, :cli => '-c' do
|
2011-11-04 15:51:22 +00:00
|
|
|
watch(%r{^spec/.+_spec\.rb$})
|
2011-11-07 13:49:42 +00:00
|
|
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
2011-11-04 15:51:22 +00:00
|
|
|
watch('spec/spec_helper.rb') { "spec" }
|
|
|
|
end
|
|
|
|
|
2011-11-17 20:44:48 +00:00
|
|
|
guard 'livereload' do
|
|
|
|
watch('index.html')
|
|
|
|
end
|
2012-01-03 13:58:51 +00:00
|
|
|
|
|
|
|
guard 'cucumber' do
|
|
|
|
watch(%r{^features/.+\.feature$})
|
|
|
|
watch(%r{^features/support/.+$}) { 'features' }
|
|
|
|
end
|