.turn_on can't work for other platform, stub .enabled? instead

This commit is contained in:
Yann Lugrin 2011-06-07 19:13:48 +02:00
parent abae416bb0
commit da1800f18a

View File

@ -83,8 +83,7 @@ describe Guard::Notifier do
end end
describe ".notify" do describe ".notify" do
before { subject.turn_on } before { subject.stub(:enabled?).and_return(true) }
after { subject.turn_off }
context "on Mac OS" do context "on Mac OS" do
before do before do