2008-12-30 20:43:29 +01:00
|
|
|
require File.dirname(__FILE__) + '/../test_helper'
|
|
|
|
|
|
|
|
# This file is generated by the Ruby Holiday gem.
|
|
|
|
#
|
|
|
|
# Definitions loaded: data/dk.yaml
|
|
|
|
class DkDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
|
|
|
|
|
|
def test_dk
|
|
|
|
{Date.civil(2007,1,1) => 'Nytårsdag',
|
|
|
|
Date.civil(2007,2,18) => 'Fastelavn',
|
|
|
|
Date.civil(2007,4,9) => 'Danmarks besættelse',
|
|
|
|
Date.civil(2007,4,16) => 'Dronningens fødselsdag',
|
|
|
|
Date.civil(2007,4,5) => 'Skærtorsdag',
|
|
|
|
Date.civil(2007,4,6) => 'Langfredag',
|
|
|
|
Date.civil(2007,4,8) => 'Påskedag',
|
|
|
|
Date.civil(2007,4,9) => '2. påskedag',
|
|
|
|
Date.civil(2007,5,1) => 'Arbejdernes kampdag',
|
|
|
|
Date.civil(2007,5,4) => 'Store Bededag',
|
|
|
|
Date.civil(2007,5,17) => 'Kristi Himmelfartsdag',
|
|
|
|
Date.civil(2007,5,27) => 'Pinsedag',
|
|
|
|
Date.civil(2007,5,28) => '2. Pinsedag',
|
|
|
|
Date.civil(2007,6,5) => 'Grundlovsdag',
|
|
|
|
Date.civil(2007,12,24) => 'Juleaftensdag',
|
|
|
|
Date.civil(2007,12,25) => '1. juledag',
|
|
|
|
Date.civil(2007,12,26) => '2. juledag'}.each do |date, name|
|
2010-04-28 15:13:56 +02:00
|
|
|
assert_equal name, (Holidays.on(date, :dk, :informal)[0] || {})[:name]
|
2008-12-30 20:43:29 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|