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
before(:each) { subject.turn_off }
if mac?
require 'growl'
if mac? && Guard::Notifier.growl_installed?
it "does nothing" do
Growl.should_not_receive(:notify)
subject.notify 'great', :title => 'Guard'
end
end
if linux?
require 'libnotify'
if linux? && Guard::Notifier.libnotify_installed?
it "does nothing" do
Libnotify.should_not_receive(:show)
subject.notify 'great', :title => 'Guard'