producer-core/Guardfile
2013-07-27 13:04:23 +00:00

12 lines
392 B
Ruby

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