Permalink
Browse files

Guard cucumber setup.

  • Loading branch information...
taylor committed Dec 15, 2011
1 parent 5510c8a commit b809382c4b85f79eed418ae6f3dc13e46b07536a
Showing with 8 additions and 7 deletions.
  1. +7 −7 Guardfile
  2. +1 −0 cucumber.yml
View
@@ -36,12 +36,12 @@ group 'punchblock:menu' do
watch(%r{/.+_spec\.rb$})
watch(%r{^lib/adhearsion/punchblock/menu/(.+)\.rb$}) { |m| "spec/adhearsion/punchblock/menu_dsl/#{m[1]}_spec.rb"}
end
-
end
-# cucumber
-#guard 'features' do
-# watch(%r{^features/.+\.feature$})
-# watch(%r{^features/support/.+$}) { 'features' }
-# watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
-#end
+group 'cuke' do
+ guard 'cucumber', :cli => '--profile guard' do
+ watch(%r{^features/.+\.feature$})
+ watch(%r{^features/support/.+$}) { 'features' }
+ watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
+ end
+end
View
@@ -1,3 +1,4 @@
default: --tags ~@wip
wip: --wip --tags @wip
cli: --tags @cli
+guard: --format pretty --strict --tags ~@wip

0 comments on commit b809382

Please sign in to comment.