Oups!
This commit is contained in:
parent
296837895a
commit
a84e46ab48
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user