From be8cd87be95a976bc5ee279c6af775244fbdab60 Mon Sep 17 00:00:00 2001 From: Thibaud Guillaume-Gentil Date: Fri, 15 Jul 2011 08:33:13 +0200 Subject: [PATCH] Prevents notification on revaluate_guardfile spec --- spec/guard/dsl_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/guard/dsl_spec.rb b/spec/guard/dsl_spec.rb index d6323f0..65a24ca 100644 --- a/spec/guard/dsl_spec.rb +++ b/spec/guard/dsl_spec.rb @@ -131,6 +131,7 @@ describe Guard::Dsl do before(:each) { ::Guard::Dsl.stub!(:instance_eval_guardfile) } it "resets already definded guards before calling evaluate_guardfile" do + Guard::Notifier.turn_off subject.evaluate_guardfile(:guardfile_contents => invalid_guardfile_string) ::Guard.guards.should_not be_empty ::Guard::Dsl.should_receive(:evaluate_guardfile)