use right icon name for growl notifications
This commit is contained in:
parent
4836e968d6
commit
7429b1fbf5
@ -35,7 +35,7 @@ module Guard
|
|||||||
Notifier.notify("Rails restarted on port #{options[:port]}.", :title => "Rails restarted!", :image => :success)
|
Notifier.notify("Rails restarted on port #{options[:port]}.", :title => "Rails restarted!", :image => :success)
|
||||||
else
|
else
|
||||||
UI.info "Rails NOT restarted, check your log files."
|
UI.info "Rails NOT restarted, check your log files."
|
||||||
Notifier.notify("Rails NOT restarted, check your log files.", :title => "Rails NOT restarted!", :image => :failure)
|
Notifier.notify("Rails NOT restarted, check your log files.", :title => "Rails NOT restarted!", :image => :failed)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ describe Guard::Rails do
|
|||||||
|
|
||||||
before do
|
before do
|
||||||
Guard::UI.expects(:info).with('Restarting Rails...')
|
Guard::UI.expects(:info).with('Restarting Rails...')
|
||||||
Guard::Notifier.expects(:notify).with(regexp_matches(/Rails restarting/), anything)
|
Guard::Notifier.expects(:notify).with(regexp_matches(/Rails restarting/), has_entry(:image => :pending))
|
||||||
Guard::RailsRunner.any_instance.stubs(:pid).returns(pid)
|
Guard::RailsRunner.any_instance.stubs(:pid).returns(pid)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ describe Guard::Rails do
|
|||||||
|
|
||||||
it "should restart and show the pid file" do
|
it "should restart and show the pid file" do
|
||||||
Guard::UI.expects(:info).with(regexp_matches(/#{pid}/))
|
Guard::UI.expects(:info).with(regexp_matches(/#{pid}/))
|
||||||
Guard::Notifier.expects(:notify).with(regexp_matches(/Rails restarted/), anything)
|
Guard::Notifier.expects(:notify).with(regexp_matches(/Rails restarted/), has_entry(:image => :success))
|
||||||
|
|
||||||
guard.run_all
|
guard.run_all
|
||||||
end
|
end
|
||||||
@ -68,7 +68,7 @@ describe Guard::Rails do
|
|||||||
it "should restart and show the pid file" do
|
it "should restart and show the pid file" do
|
||||||
Guard::UI.expects(:info).with(regexp_matches(/#{pid}/)).never
|
Guard::UI.expects(:info).with(regexp_matches(/#{pid}/)).never
|
||||||
Guard::UI.expects(:info).with(regexp_matches(/Rails NOT restarted/))
|
Guard::UI.expects(:info).with(regexp_matches(/Rails NOT restarted/))
|
||||||
Guard::Notifier.expects(:notify).with(regexp_matches(/Rails NOT restarted/), anything)
|
Guard::Notifier.expects(:notify).with(regexp_matches(/Rails NOT restarted/), has_entry(:image => :failed))
|
||||||
|
|
||||||
guard.run_all
|
guard.run_all
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user