Add Guardfile

This commit is contained in:
Thibault Jouan 2013-07-26 20:12:08 +00:00
parent c01389fa43
commit 46f992fdb2

11
Guardfile Normal file
View File

@ -0,0 +1,11 @@
guard :cucumber, cli: '--format pretty' do
watch(%r{\Afeatures/.+\.feature\z})
watch(%r{\Afeatures/support/.+\.rb\z}) { 'features' }
watch(%r{\Afeatures/step_definitions/.+_steps\.rb\z}) { 'features' }
end
guard :rspec do
watch(%r{\Aspec/.+_spec\.rb\z})
watch(%r{\Alib/(.+)\.rb\z}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
end