Skip to content

Commit

Permalink
Trigger all listener specs when listener_helper.rb is changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
netzpirat committed Sep 28, 2011
1 parent b00c850 commit 83b1c9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
group :specs do
guard :rspec, :cli => '--format doc' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/support/listener_helper.rb') { Dir.glob("spec/guard/listeners/*") }
watch('spec/spec_helper.rb') { "spec" }
end
end

Expand Down

0 comments on commit 83b1c9f

Please sign in to comment.