spec/ui_selenium/pages/api_my_academics_page_semesters.rb
# Enrollment records associate units with primary sections
Enrollment records associate units with primary sections
Enrollment records associate units with primary sections
def units_by_enrollment(courses)
    units = []
    courses.each do |course|
      primary_sections(course).each { |section| units.push(section['units']) }
    end
    units
  end
def units_by_enrollment ( courses ) units = [ ] courses . each do | course | primary_sections ( course ) . each { | section | units . push ( section [ 'units' ] ) } end units end
Enrollment records associate units with primary sections
Enrollment records associate units with primary sections
courses