Skip to content

Commit

Permalink
Use real regular expressions in the Guardfile template and also the R…
Browse files Browse the repository at this point in the history
…EADME file.
  • Loading branch information
netzpirat committed Dec 17, 2010
1 parent 85f86fd commit 60d33be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Guardfile
@@ -1,5 +1,5 @@
guard 'rspec', :version => 2 do
watch('^spec/(.*)_spec.rb')
watch('^lib/(.*).rb') { |m| "spec/#{m[1]}_spec.rb" }
watch('^spec/spec_helper.rb') { 'spec' }
watch('spec/spec_helper.rb') { 'spec' }
watch(%r{spec/.+_spec.rb})
watch(%r{lib/(.+).rb}) { |m| "spec/#{ m[1] }_spec.rb" }
end
6 changes: 3 additions & 3 deletions README.rdoc
Expand Up @@ -30,9 +30,9 @@ Cucumber guard can be adapated to all kind of projects.
Please read {guard doc}[http://github.com/guard/guard#readme] for more info about Guardfile DSL.

guard 'cucumber' do
watch('^features/(.*).feature')
watch('^features/support') { 'features' }
watch('^features/step_definitions') { 'features' }
watch(%r{features/.+\.feature})
watch(%r{features/support/.+}) { 'features' }
watch(%r{features/step_definitions/.+}) { 'features' }
end

== Options
Expand Down
6 changes: 3 additions & 3 deletions lib/guard/cucumber/templates/Guardfile
@@ -1,5 +1,5 @@
guard 'cucumber' do
watch('^features/(.*).feature')
watch('^features/support') { 'features' }
watch('^features/step_definitions') { 'features' }
watch(%r{features/.+\.feature})
watch(%r{features/support/.+}) { 'features' }
watch(%r{features/step_definitions/.+}) { 'features' }
end

0 comments on commit 60d33be

Please sign in to comment.