aboutsummaryrefslogtreecommitdiff
path: root/test/tc_mauve_time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/tc_mauve_time.rb')
-rw-r--r--test/tc_mauve_time.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/tc_mauve_time.rb b/test/tc_mauve_time.rb
index 7a8fefa..6e5989b 100644
--- a/test/tc_mauve_time.rb
+++ b/test/tc_mauve_time.rb
@@ -35,8 +35,15 @@ class TestMauveTime < Mauve::UnitTest
assert_equal(hour_1, t.in_x_hours(1,"working"))
assert_equal(hour_0, t.in_x_hours(0,"working"))
+ end
+
+ def test_bank_holiday?
+ x = Time.now
+ assert(!x.bank_holiday?)
+ x.bank_holidays << Date.new(x.year, x.month, x.day)
+ assert(x.bank_holiday?)
end