Skip to content

A platform for community discussion. Free, open, simple.

573 B
Raw Blame
# encoding: utf-8
require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'

# This file is generated by the Ruby Holiday gem.
#
# Definitions loaded: definitions/id.yaml
class IdDefinitionTests < Test::Unit::TestCase  # :nodoc:

  def test_id
    assert_equal "Chinese New Year", (Holidays.on(Date.civil(2025, 1, 29), [:id])[0] || {})[:name]

    assert_equal "Good Friday", (Holidays.on(Date.civil(2025, 4, 18), [:id])[0] || {})[:name]

    assert_equal "Ascension Day of Jesus Christ", (Holidays.on(Date.civil(2025, 5, 29), [:id])[0] || {})[:name]

  end
end