spec/ui_selenium/pages/api_my_academics_page_semesters.rb
def units_by_transcript(courses)
    units = []
    courses.each do |course|
      if course_transcripts(course).nil?
        primary_sections(course).each { |section| units.push(section['units']) }
      else
        course_transcripts(course).each { |transcript| units.push(transcript['units']) }
      end
    end
    units
  end
# Transcripts do not necessarily associate units with primary sections
Transcripts do not necessarily associate units with primary sections
Transcripts do not necessarily associate units with primary sections
def units_by_transcript(courses)
    units = []
    courses.each do |course|
      if course_transcripts(course).nil?
        primary_sections(course).each { |section| units.push(section['units']) }
      else
        course_transcripts(course).each { |transcript| units.push(transcript['units']) }
      end
    end
    units
  end
def units_by_transcript ( courses ) units = [ ] courses . each do | course | if course_transcripts ( course ) . nil? primary_sections ( course ) . each { | section | units . push ( section [ 'units' ] ) } else course_transcripts ( course ) . each { | transcript | units . push ( transcript [ 'units' ] ) } end end units end
Transcripts do not necessarily associate units with primary sections
Transcripts do not necessarily associate units with primary sections
courses