This commit is contained in:
Thibaud Guillaume-Gentil 2011-05-06 21:29:22 +02:00
parent 296837895a
commit a84e46ab48

View File

@ -35,16 +35,14 @@ describe Guard::Notifier do
describe ".turn_off" do describe ".turn_off" do
before(:each) { subject.turn_off } before(:each) { subject.turn_off }
if mac? if mac? && Guard::Notifier.growl_installed?
require 'growl'
it "does nothing" do it "does nothing" do
Growl.should_not_receive(:notify) Growl.should_not_receive(:notify)
subject.notify 'great', :title => 'Guard' subject.notify 'great', :title => 'Guard'
end end
end end
if linux? if linux? && Guard::Notifier.libnotify_installed?
require 'libnotify'
it "does nothing" do it "does nothing" do
Libnotify.should_not_receive(:show) Libnotify.should_not_receive(:show)
subject.notify 'great', :title => 'Guard' subject.notify 'great', :title => 'Guard'