spec/ui_selenium/pages/api_my_academics_page_semesters.rb
# 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 << primary_section
    course_sections(course).each { |section| assoc_sections << section if section['associatedWithPrimary'] == section_slug(primary_section) }
    assoc_sections
  end
def associated_sections ( course , primary_section ) assoc_sections = [ ] assoc_sections << primary_section course_sections ( course ) . each { | section | assoc_sections << section if section [ 'associatedWithPrimary' ] == section_slug ( primary_section ) } 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
<not_specific>
primary_section
<not_specific>