From 5e6f40f199adfcf5815b72d8450e1ca04579b368 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 27 Apr 2012 15:32:20 +0100 Subject: Fixed notification when on holiday/off sick --- debian/changelog | 6 ++++++ lib/mauve/configuration_builders/person.rb | 10 ++++++++++ test/tc_mauve_configuration_builders_person.rb | 27 +++++++++++++++++++------- 3 files changed, 36 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index f41e76e..b02e310 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mauvealert (3.8.3) stable; urgency=low + + * Fixed notification when on holiday/off sick + + -- Patrick J Cherry Fri, 27 Apr 2012 15:32:07 +0100 + mauvealert (3.8.2) stable; urgency=low * Reverted bad changes to mauveserver + example.conf diff --git a/lib/mauve/configuration_builders/person.rb b/lib/mauve/configuration_builders/person.rb index afb967b..5c79474 100644 --- a/lib/mauve/configuration_builders/person.rb +++ b/lib/mauve/configuration_builders/person.rb @@ -57,6 +57,16 @@ module Mauve end end + # + # + def notify_when_on_holday! + result.notify_when_on_holiday! + end + + def notify_when_off_sick! + result.notify_when_off_sick! + end + end end diff --git a/test/tc_mauve_configuration_builders_person.rb b/test/tc_mauve_configuration_builders_person.rb index 6ee3d13..48ceafd 100644 --- a/test/tc_mauve_configuration_builders_person.rb +++ b/test/tc_mauve_configuration_builders_person.rb @@ -10,10 +10,16 @@ class TcMauveConfigurationBuildersPerson < Mauve::UnitTest config=<