Permalink
Browse files

updating new years day observance

New Year's Day 2017 is on a Sunday
So, it is observed that monday - the 2nd.
  • Loading branch information...
1 parent a2480fc commit c86e497ab0d7d012b16d98e2c12fa7f1fb1ac568 @iterion iterion committed Feb 7, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 data/nerc.yaml
View
@@ -10,6 +10,7 @@ months:
- name: New Year's Day
regions: [nerc]
mday: 1
+ observed: to_weekday_if_weekend
5:
- name: Memorial Day
week: -1
@@ -37,11 +38,12 @@ months:
observed: to_weekday_if_weekend
methods:
tests: |
- {Date.civil(2013,1,1) => 'New Year\'s Day',
+ {Date.civil(2013,1,1) => 'New Year\'s Day',
+ Date.civil(2017,1,2) => 'New Year\'s Day',
Date.civil(2013,5,27) => 'Memorial Day',
Date.civil(2013,7,4) => 'Independence Day',
Date.civil(2013,9,2) => 'Labor Day',
Date.civil(2013,11,28) => 'Thanksgiving',
Date.civil(2013,12,25) => 'Christmas Day'}.each do |date, name|
assert_equal name, (Holidays.on(date, :nyse)[0] || {})[:name]
- end
+ end

0 comments on commit c86e497

Please sign in to comment.