File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 106106 end
107107end
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+
109123context 'holiday.yml' do
110124 before do
111125 @holidays_detailed = YAML . load_file ( File . expand_path ( '../../holidays_detailed.yml' , __FILE__ ) )
You can’t perform that action at this time.
0 commit comments