Configure guard for cucumber and rspec
This commit is contained in:
parent
4051a10612
commit
1658a616a8
12
Guardfile
Normal file
12
Guardfile
Normal 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
|
Loading…
x
Reference in New Issue
Block a user