Configure guard for cucumber and rspec

This commit is contained in:
Thibault Jouan 2015-04-07 17:33:16 +00:00
parent 4051a10612
commit 1658a616a8

12
Guardfile Normal file
View File

@ -0,0 +1,12 @@
directories %w[features lib spec]
guard :cucumber, cli: '--format pretty --quiet', all_on_start: false do
watch(%r{\Afeatures/.+\.feature\z})
end
guard :rspec, cmd: 'bundle exec rspec -f doc' do
watch(%r{\Aspec/.+_spec\.rb\z})
watch(%r{\Alib/(.+)\.rb\z}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
watch(%r{\Aspec/support/.+\.rb\z}) { 'spec' }
end