spec/ui_selenium/pages/api_my_academics_page_semesters.rb
# Semester card shows units by primary section unless transcripts exist
Semester card shows units by primary section unless transcripts exist
Semester card shows units by primary section unless transcripts exist
def semester_card_units(courses)
    units = []
    courses.each do |course|
      if course_transcripts(course).nil?
        course_primary_sections(course).each { |section| units << section['units'] }
      else
        course_transcripts(course).each { |transcript| units << transcript['units'] }
      end
    end
    units
  end
def semester_card_units ( courses ) units = [ ] courses . each do | course | if course_transcripts ( course ) . nil? course_primary_sections ( course ) . each { | section | units << section [ 'units' ] } else course_transcripts ( course ) . each { | transcript | units << transcript [ 'units' ] } end end units end
Semester card shows units by primary section unless transcripts exist
Semester card shows units by primary section unless transcripts exist
courses
<not_specific>