From 4f6ff88393027210d8710bee1d2b1b329a426922 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 8 Jun 2012 10:31:25 +0100 Subject: Fixed notify_when_on_holiday/off_sick flags in configuration + added tests. --- lib/mauve/configuration_builders/person.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/mauve/configuration_builders') diff --git a/lib/mauve/configuration_builders/person.rb b/lib/mauve/configuration_builders/person.rb index bb4fe8d..f171d10 100644 --- a/lib/mauve/configuration_builders/person.rb +++ b/lib/mauve/configuration_builders/person.rb @@ -25,8 +25,8 @@ module Mauve is_attribute "email" is_attribute "xmpp" - is_flag_attribute "notify_when_on_holiday!" - is_flag_attribute "notify_when_off_sick!" + is_flag_attribute "notify_when_on_holiday" + is_flag_attribute "notify_when_off_sick" # Sets the block for all levels of alert # @@ -61,11 +61,11 @@ module Mauve # # def notify_when_on_holday! - result.notify_when_on_holiday! + result.notify_when_on_holiday = true end def notify_when_off_sick! - result.notify_when_off_sick! + result.notify_when_off_sick = true end end -- cgit v1.2.1