From 83b1c9f787487d395f4929ea0f27f8273b73a437 Mon Sep 17 00:00:00 2001 From: Michael Kessler Date: Wed, 28 Sep 2011 13:34:53 +0200 Subject: [PATCH] Trigger all listener specs when listener_helper.rb is changed. --- Guardfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Guardfile b/Guardfile index 0f239c9..a065441 100644 --- a/Guardfile +++ b/Guardfile @@ -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