holidays/test/test_region_ca.rb
Alex Dunae 7f3c9b6b88
2007-11-23 04:28:15 +00:00

11 lines
339 B
Ruby

require File.dirname(__FILE__) + '/test_helper'
class CATests < Test::Unit::TestCase
def test_ca_victoria_day
[Date.civil(2004,5,24), Date.civil(2005,5,23), Date.civil(2006,5,22),
Date.civil(2007,5,21), Date.civil(2008,5,19)].each do |date|
assert_equal 'Victoria Day', Holidays.on(date, :ca)[0][:name]
end
end
end