aboutsummaryrefslogtreecommitdiff
path: root/test/tc_mauve_notification.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-05-02 15:24:22 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-05-02 15:24:22 +0100
commit2e0b89b33d4c9944440bba49e6926a51b46d02c3 (patch)
tree2a28075d9b7459b469afb1988572cb61f4221881 /test/tc_mauve_notification.rb
parente55096b063720e0be4ca8d774095d2f6dfb7c086 (diff)
parentc697cea61321a8b292b4e353afc9dbff8a552b94 (diff)
merge
Diffstat (limited to 'test/tc_mauve_notification.rb')
-rw-r--r--test/tc_mauve_notification.rb10
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