diff --git a/lib/term_year.rb b/lib/term_year.rb index 9fd883afd..8de8572bf 100644 --- a/lib/term_year.rb +++ b/lib/term_year.rb @@ -29,7 +29,7 @@ const_set 'VISIBLE_TERMS', [:spring, :summer, :fall, :winter] SUNSET_YEAR = 2023 - SUNSET_YEAR_VISIBLE_TERMS = [:spring, :summer, :fall] + SUNSET_YEAR_VISIBLE_TERMS = [:spring, :summer] attr_reader :starts_at, :ends_at diff --git a/spec/lib/term_year_spec.rb b/spec/lib/term_year_spec.rb index b78aad6ad..9d0f2ff76 100644 --- a/spec/lib/term_year_spec.rb +++ b/spec/lib/term_year_spec.rb @@ -208,24 +208,19 @@ it 'returns the correct visible_term_years' do expect(TermYear.visible_term_years(spring_date_time)).to eq [ TermYear.new(:spring, current_year), - TermYear.new(:summer, current_year), - TermYear.new(:fall, current_year) + TermYear.new(:summer, current_year) ] expect(TermYear.visible_term_years(spring_summer_date_time)).to eq [ TermYear.new(:spring, current_year), - TermYear.new(:summer, current_year), - TermYear.new(:fall, current_year) + TermYear.new(:summer, current_year) ] expect(TermYear.visible_term_years(summer_fall_date_time)).to eq [ - TermYear.new(:summer, current_year), - TermYear.new(:fall, current_year) + TermYear.new(:summer, current_year) ] - expect(TermYear.visible_term_years(fall_date_time)).to eq [ - TermYear.new(:fall, current_year) - ] + expect(TermYear.visible_term_years(fall_date_time)).to eq [] end end