producer-core/Guardfile
Thibault Jouan fdbe19617f Improve Guardfile:
* Prevent cucumber run on start;
* Force rspec to be executed by bundler.
2014-03-31 23:32:26 +00:00

13 lines
511 B
Ruby

guard :cucumber, cli: '--format pretty --quiet', all_on_start: false 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, 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