Fix specs (hopefully)

This commit is contained in:
Rémy Coutable 2011-08-11 12:09:24 +02:00
parent a58e5d8fa5
commit 95b86a38c7

View File

@ -148,7 +148,8 @@ describe Guard::Notifier do
Libnotify.should_receive(:show).with( Libnotify.should_receive(:show).with(
:body => "great", :body => "great",
:summary => 'Guard', :summary => 'Guard',
:icon_path => Pathname.new(File.dirname(__FILE__)).join('../../images/success.png').to_s :icon_path => Pathname.new(File.dirname(__FILE__)).join('../../images/success.png').to_s,
:transient => true
) )
subject.notify 'great', :title => 'Guard' subject.notify 'great', :title => 'Guard'
end end
@ -164,6 +165,7 @@ describe Guard::Notifier do
:body => "great", :body => "great",
:summary => 'Guard', :summary => 'Guard',
:icon_path => Pathname.new(File.dirname(__FILE__)).join('../../images/success.png').to_s, :icon_path => Pathname.new(File.dirname(__FILE__)).join('../../images/success.png').to_s,
:transient => true,
:urgency => :critical :urgency => :critical
) )
subject.notify 'great', :title => 'Guard', :urgency => :critical subject.notify 'great', :title => 'Guard', :urgency => :critical
@ -173,7 +175,8 @@ describe Guard::Notifier do
Libnotify.should_receive(:show).with( Libnotify.should_receive(:show).with(
:body => "great", :body => "great",
:summary => 'Guard', :summary => 'Guard',
:icon_path => '~/.guard/success.png' :icon_path => '~/.guard/success.png',
:transient => true
) )
subject.notify 'great', :title => 'Guard', :icon_path => '~/.guard/success.png' subject.notify 'great', :title => 'Guard', :icon_path => '~/.guard/success.png'
end end