From 9118f35a8d2afce13ee788dd773c97d038414f81 Mon Sep 17 00:00:00 2001 From: Yann Lugrin Date: Thu, 21 Oct 2010 16:27:31 +0800 Subject: [PATCH] notifier spec work on linux --- spec/guard/notifier_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/guard/notifier_spec.rb b/spec/guard/notifier_spec.rb index b051cdc..f9ce43b 100644 --- a/spec/guard/notifier_spec.rb +++ b/spec/guard/notifier_spec.rb @@ -19,14 +19,14 @@ describe Guard::Notifier do end if linux? + require 'libnotify' it "should use Libnotify on Linux" do - Sys::Uname.stub(:sysname).and_return('Linux') Libnotify.should_receive(:show).with( :body => "great", :summary => 'Guard', - :icon_path => 'image/path' + :icon_path => Pathname.new(File.dirname(__FILE__)).join('../../images/success.png').to_s ) - subject.notify 'great', 'Guard', 'image/path' + subject.notify 'great', :title => 'Guard' end end