Skip to content

Commit

Permalink
Revert "extend sunset into fall 2023 (#2469)"
Browse files Browse the repository at this point in the history
This reverts commit d494ed5.
  • Loading branch information
Dantemss authored Aug 14, 2023
1 parent 8e71e0e commit c78004c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/term_year.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
13 changes: 4 additions & 9 deletions spec/lib/term_year_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c78004c

Please sign in to comment.