diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-05-02 10:44:34 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-05-02 10:44:34 +0100 |
commit | 27d38820a67751a898d5d17073adc556c4bb56a9 (patch) | |
tree | 6157be1229f0c5ea7f8f237370ede914cf7e2f95 /test/tc_mauve_notification.rb | |
parent | e6c1341540eb4c08b1cbfef46cf2360489b27bd0 (diff) |
Added configuration options for daytime_hours, dead_zone, and working_hours.
Diffstat (limited to 'test/tc_mauve_notification.rb')
-rw-r--r-- | test/tc_mauve_notification.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/tc_mauve_notification.rb b/test/tc_mauve_notification.rb index 21ff41e..df8fa9b 100644 --- a/test/tc_mauve_notification.rb +++ b/test/tc_mauve_notification.rb @@ -224,6 +224,16 @@ EOF logger_pop end + def test_bank_holiday + time = Time.now + + dr = DuringRunner.new(time) + assert(!dr.send(:bank_holiday?)) + + time.bank_holidays << Date.new(Time.now.year, Time.now.month, Time.now.day) + assert(dr.send(:bank_holiday?)) + end + end class TcMauveNotification < Mauve::UnitTest |