Test case for 2010-05-08 DE holiday -- closes GH-2

master
Alex Dunae 2010-11-12 12:57:16 -08:00
parent 2b6d5c1b15
commit 474e1b660c
3 changed files with 6 additions and 0 deletions

View File

@ -103,6 +103,8 @@ tests: |
[:de_bw, :de_by, :de_nw, :de_rp, :de_sl, :de_].each do |r|
assert_equal 'Allerheiligen', Date.civil(2009,11,1).holidays(r)[0][:name]
end
assert !Date.civil(2010,5,8).holiday?(:de), '2010-05-08 is not a holiday in Germany'
# Repentance Day
assert_equal 'Buß- und Bettag', Date.civil(2004,11,17).holidays(:de_sn)[0][:name]

View File

@ -39,6 +39,8 @@ end
assert_equal 'Allerheiligen', Date.civil(2009,11,1).holidays(r)[0][:name]
end
assert !Date.civil(2010,5,8).holiday?(:de), '2010-05-08 is not a holiday in Germany'
# Repentance Day
assert_equal 'Buß- und Bettag', Date.civil(2004,11,17).holidays(:de_sn)[0][:name]
assert_equal 'Buß- und Bettag', Date.civil(2005,11,16).holidays(:de_sn)[0][:name]

View File

@ -75,6 +75,8 @@ end
assert_equal 'Allerheiligen', Date.civil(2009,11,1).holidays(r)[0][:name]
end
assert !Date.civil(2010,5,8).holiday?(:de), '2010-05-08 is not a holiday in Germany'
# Repentance Day
assert_equal 'Buß- und Bettag', Date.civil(2004,11,17).holidays(:de_sn)[0][:name]
assert_equal 'Buß- und Bettag', Date.civil(2005,11,16).holidays(:de_sn)[0][:name]