Update generate test_defs
This commit is contained in:
parent
0aeaae378f
commit
fa6ad64f81
24 changed files with 39 additions and 61 deletions
|
@ -1,5 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
require 'holidays/is'
|
||||
|
||||
# This file is generated by the Ruby Holiday gem.
|
||||
#
|
||||
|
@ -27,7 +26,7 @@ class IsDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|||
Date.civil(2007,12,25) => 'Jól',
|
||||
Date.civil(2007,12,26) => 'Jól',
|
||||
Date.civil(2007,12,31) => 'Gamlárskvöld'}.each do |date, name|
|
||||
assert_equal name, Holidays.on(date, :is, :informal)[0][:name]
|
||||
assert_equal name, (Holidays.on(date, :is, :informal)[0] || {})[:name]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue