Permalink
Browse files

Add back limited guard groups (spec and cucumber)

  • Loading branch information...
1 parent 0af9e2e commit bae8945a56cfa03cbdb37484534dcf8da8a4bef4 @benlangfeld benlangfeld committed Dec 23, 2011
Showing with 12 additions and 8 deletions.
  1. +12 −8 Guardfile
View
@@ -1,13 +1,17 @@
ENV['SKIP_RCOV'] = 'true'
-guard 'rspec', :version => 2, :cli => '--format documentation' do
- watch(%r{^spec/.+_spec\.rb$})
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
- watch('spec/spec_helper.rb') { "spec/" }
+group 'rspec' do
+ guard 'rspec', :version => 2, :cli => '--format documentation' do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec/" }
+ end
end
-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' }
+group 'cucumber' 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

0 comments on commit bae8945

Please sign in to comment.