.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
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