Skip to content

Commit

Permalink
added spec to my guard
Browse files Browse the repository at this point in the history
  • Loading branch information
cheezy committed Sep 2, 2012
1 parent 2fe30e9 commit 4d4519c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -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.