# Mexican holiday definitions for the Ruby Holiday gem.
# Updated 2008-12-05.
# Sources:
# - http://www.britishembassy.gov.uk/servlet/Front?pagename=OpenMarket/Xcelerate/ShowPage&c=Page&cid=1125561634963
# - http://www.usembassy-mexico.gov/eng/holidays.html
---
months:
  1:
  - name: Año nuevo
    regions: [mx]
    mday: 1
  - name: Dia de los Santos Reyes
    regions: [mx]
    mday: 6
  2:
  - name: Día de la Constitución
    week: 1
    regions: [mx]
    wday: 1
  3:
  - name: Natalicio de Benito Juárez
    week: 3
    regions: [mx]
    wday: 1
  4:
  - name: Día del Niño
    regions: [mx]
    mday: 30
    type: informal
  5:
  - name: Día del Trabajo
    regions: [mx]
    mday: 1
  - name: Cinco de Mayo
    regions: [mx]
    mday: 5
    type: informal
  - name: La Batalla de Puebla
    regions: [mx_pue]
    mday: 5
  - name: Día de la Madre
    regions: [mx]
    mday: 10
    type: informal
  - name: Día del Maestro
    regions: [mx]
    mday: 15
    type: informal
  6:
  - name: Día del Padre
    regions: [mx]
    wday: 7
    week: 3
    type: informal
  9:
  - name: Grito de Dolores
    regions: [mx]
    mday: 15
  - name: Día de la Independencia
    regions: [mx]
    mday: 16
  10:
  - name: Día de la Raza
    regions: [mx]
    mday: 12
    type: informal
  11:
  - name: Todos los Santos
    regions: [mx]
    mday: 1
    type: informal
  - name: Los Fieles Difuntos
    regions: [mx]
    mday: 2
    type: informal
  - name: Día de la Revolución
    week: 3
    regions: [mx]
    wday: 1
  12:
  - name: Día de la Virgen de Guadalupe
    regions: [mx]
    mday: 12
    type: informal
  - name: Nochebuena
    regions: [mx]
    mday: 24
    type: informal
  - name: Navidad
    regions: [mx]
    mday: 25
  - name: Los Santos Inocentes
    regions: [mx]
    mday: 28

tests:
  - given:
      date: '2007-01-01'
      regions: ["mx"]
      options: ["informal"]
    expect:
      name: "Año nuevo"
  - given:
      date: '2007-02-05'
      regions: ["mx"]
      options: ["informal"]
    expect:
      name: "Día de la Constitución"
  - given:
      date: '2007-05-01'
      regions: ["mx"]
      options: ["informal"]
    expect:
      name: "Día del Trabajo"
  - given:
      date: '2007-05-05'
      regions: ["mx"]
      options: ["informal"]
    expect:
      name: "Cinco de Mayo"
  - given:
      date: '2007-09-16'
      regions: ["mx"]
      options: ["informal"]
    expect:
      name: "Día de la Independencia"
  - given:
      date: '2007-11-01'
      regions: ["mx"]
      options: ["informal"]
    expect:
      name: "Todos los Santos"
  - given:
      date: '2007-11-02'
      regions: ["mx"]
      options: ["informal"]
    expect:
      name: "Los Fieles Difuntos"
  - given:
      date: '2007-11-19'
      regions: ["mx"]
      options: ["informal"]
    expect:
      name: "Día de la Revolución"
  - given:
      date: '2007-12-25'
      regions: ["mx"]
      options: ["informal"]
    expect:
      name: "Navidad"
