Skipped Guard::Notifier spec if growl/libnotify not installed
This commit is contained in:
parent
660baf7adc
commit
296837895a
@ -10,8 +10,7 @@ describe Guard::Notifier do
|
|||||||
subject.turn_on
|
subject.turn_on
|
||||||
end
|
end
|
||||||
|
|
||||||
if mac?
|
if mac? && Guard::Notifier.growl_installed?
|
||||||
require 'growl'
|
|
||||||
it "uses Growl on Mac OS X" do
|
it "uses Growl on Mac OS X" do
|
||||||
Growl.should_receive(:notify).with("great",
|
Growl.should_receive(:notify).with("great",
|
||||||
:title => "Guard",
|
:title => "Guard",
|
||||||
@ -22,8 +21,7 @@ describe Guard::Notifier do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if linux?
|
if linux? && Guard::Notifier.libnotify_installed?
|
||||||
require 'libnotify'
|
|
||||||
it "uses Libnotify on Linux" do
|
it "uses Libnotify on Linux" do
|
||||||
Libnotify.should_receive(:show).with(
|
Libnotify.should_receive(:show).with(
|
||||||
:body => "great",
|
:body => "great",
|
||||||
|
Loading…
Reference in New Issue
Block a user