spec/ui_selenium/pages/api_my_academics_page_semesters.rb
def default_semesters_in_ui(semesters)
    default_semesters = []
    default_semesters.concat future_semesters(semesters)
    unless current_semester(semesters).nil?
      default_semesters.push current_semester(semesters)
    end
    if past_semesters(semesters).any?
      default_semesters.push(past_semesters(semesters)[0])
    end
    default_semesters
  end
# The semesters visible by default on the My Academics page
The semesters visible by default on the My Academics page
The semesters visible by default on the My Academics page
def default_semesters_in_ui(semesters)
    default_semesters = []
    default_semesters.concat future_semesters(semesters)
    unless current_semester(semesters).nil?
      default_semesters.push current_semester(semesters)
    end
    if past_semesters(semesters).any?
      default_semesters.push(past_semesters(semesters)[0])
    end
    default_semesters
  end
def default_semesters_in_ui ( semesters ) default_semesters = [ ] default_semesters . concat future_semesters ( semesters ) unless current_semester ( semesters ) . nil? default_semesters . push current_semester ( semesters ) end if past_semesters ( semesters ) . any? default_semesters . push ( past_semesters ( semesters ) [ 0 ] ) end default_semesters end
The semesters visible by default on the My Academics page
The semesters visible by default on the My Academics page
semesters