# encoding: utf-8 require File.expand_path(File.dirname(__FILE__)) + '/../test_helper' # This file is generated by the Ruby Holiday gem. # # Definitions loaded: data/it.yaml class ItDefinitionTests < Test::Unit::TestCase # :nodoc: def test_it {Date.civil(2007,1,1) => 'Capodanno', Date.civil(2007,1,6) => 'Epifania', Date.civil(2007,4,8) => 'Pasqua', Date.civil(2007,4,9) => 'Lunedì dell\'Angelo', Date.civil(2007,4,25) => 'Festa della Liberazione', Date.civil(2007,5,1) => 'Festa dei Lavoratori', Date.civil(2007,6,2) => 'Festa della Repubblica', Date.civil(2007,8,15) => 'Assunzione', Date.civil(2007,11,1) => 'Ognissanti', Date.civil(2007,12,8) => 'Immacolata Concezione', Date.civil(2007,12,25) => 'Natale', Date.civil(2007,12,26) => 'Santo Stefano'}.each do |date, name| assert_equal name, (Holidays.on(date, :it, :informal)[0] || {})[:name] end end end