Guardfile in penchant-0.1.2 vs Guardfile in penchant-0.2.1
- old
+ new
@@ -7,12 +7,15 @@
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
end
-group :cucumber do
- guard 'cucumber' do
- watch(%r{^features/.+\.feature$})
+# added by cuke-pack
+
+group :wip do
+ guard 'cucumber', :env => :cucumber, :cli => '-p wip' do
+ watch(%r{^features/.+.feature$})
+ watch(%r{^(app|lib).*}) { 'features' }
watch(%r{^features/support/.+$}) { 'features' }
- watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
+ watch(%r{^features/step_definitions/(.+).rb$}) { 'features' }
end
end