spec/ui_selenium/pages/api_my_academics_page_semesters.rb
def associated_sections(course, primary_section)
    assoc_sections = []
    assoc_sections.push(primary_section)
    primary_slug = section_slug(primary_section)
    sections(course).each do |section|
      if section['associatedWithPrimary'] == primary_slug
        assoc_sections.push(section)
      end
    end
    assoc_sections
  end
# Courses with multiple primary sections can have secondaries associated with only one of the primaries
Courses with multiple primary sections can have secondaries associated with only one of the primaries
Courses with multiple primary sections can have secondaries associated with only one of the primaries
def associated_sections(course, primary_section)
    assoc_sections = []
    assoc_sections.push(primary_section)
    primary_slug = section_slug(primary_section)
    sections(course).each do |section|
      if section['associatedWithPrimary'] == primary_slug
        assoc_sections.push(section)
      end
    end
    assoc_sections
  end
def associated_sections ( course , primary_section ) assoc_sections = [ ] assoc_sections . push ( primary_section ) primary_slug = section_slug ( primary_section ) sections ( course ) . each do | section | if section [ 'associatedWithPrimary' ] == primary_slug assoc_sections . push ( section ) end end assoc_sections end
Courses with multiple primary sections can have secondaries associated with only one of the primaries
Courses with multiple primary sections can have secondaries associated with only one of the primaries
course
primary_section