Skip to content

Commit eb7271a

Browse files
committed
Update spec
1 parent 526e551 commit eb7271a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

spec/holidays_detailed_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,20 @@
106106
end
107107
end
108108

109+
context 'Coronation Day / 天皇の即位の日及び即位礼正殿の儀の行われる日を休日とする法律' do
110+
before do
111+
@holidays_detailed = YAML.load_file(File.expand_path('../../holidays_detailed.yml', __FILE__))
112+
end
113+
it '天皇の即位の日の平成31年(2019年)5月1日及び即位礼正殿の儀が行われる日の平成31年(2019年)10月22日は、休日となります' do
114+
expect(@holidays_detailed.key?(Date::parse('2019-05-01'))).to eq true
115+
expect(@holidays_detailed.key?(Date::parse('2019-10-22'))).to eq true
116+
end
117+
it 'また、これらの休日は国民の祝日扱いとなるため、平成31年(2019年)4月30日と5月2日も休日となります' do
118+
expect(@holidays_detailed.key?(Date::parse('2019-04-30'))).to eq true
119+
expect(@holidays_detailed.key?(Date::parse('2019-05-02'))).to eq true
120+
end
121+
end
122+
109123
context 'holiday.yml' do
110124
before do
111125
@holidays_detailed = YAML.load_file(File.expand_path('../../holidays_detailed.yml', __FILE__))

0 commit comments

Comments
 (0)