Update generate test_defs

This commit is contained in:
Rowan Crawford 2010-04-28 21:13:56 +08:00 committed by Alex Dunae
parent 0aeaae378f
commit fa6ad64f81
24 changed files with 39 additions and 61 deletions

View file

@ -1,5 +1,4 @@
require File.dirname(__FILE__) + '/../test_helper'
require 'holidays/dk'
# This file is generated by the Ruby Holiday gem.
#
@ -24,7 +23,7 @@ class DkDefinitionTests < Test::Unit::TestCase # :nodoc:
Date.civil(2007,12,24) => 'Juleaftensdag',
Date.civil(2007,12,25) => '1. juledag',
Date.civil(2007,12,26) => '2. juledag'}.each do |date, name|
assert_equal name, Holidays.on(date, :dk, :informal)[0][:name]
assert_equal name, (Holidays.on(date, :dk, :informal)[0] || {})[:name]
end
end
end