From da1800f18a21834d05d32f52376fbeac7cdf6f9d Mon Sep 17 00:00:00 2001 From: Yann Lugrin Date: Tue, 7 Jun 2011 19:13:48 +0200 Subject: [PATCH] .turn_on can't work for other platform, stub .enabled? instead --- spec/guard/notifier_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/guard/notifier_spec.rb b/spec/guard/notifier_spec.rb index bb4ef18..8833849 100644 --- a/spec/guard/notifier_spec.rb +++ b/spec/guard/notifier_spec.rb @@ -83,8 +83,7 @@ describe Guard::Notifier do end describe ".notify" do - before { subject.turn_on } - after { subject.turn_off } + before { subject.stub(:enabled?).and_return(true) } context "on Mac OS" do before do