Permalink
Browse files

added spec to my guard

  • Loading branch information...
cheezy committed Sep 2, 2012
1 parent 2fe30e9 commit 4d4519cb3bb95d1e1332fc8e653833757339bbb6
Showing with 8 additions and 0 deletions.
  1. +8 −0 Guardfile
View
@@ -1,10 +1,18 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
+guard 'rspec', :version => 2, :cli => '--color --format Fuubar' do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+end
+
+
guard 'cucumber', :notification => true, :all_after_pass => false, :cli => '--profile focus' 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' }
watch(%r{^lib/.+\.rb$}) { "features" }
watch(%r{^cucumber.yml$}) { "features" }
end
+

0 comments on commit 4d4519c

Please sign in to comment.