   it 'should pass in period info when selected', (done) ->
     {div} = @result
 
-    firstPeriodItemLink = div.querySelector('li > a')
+    lastPeriodItemLink = div.querySelector('li:last-of-type > a')
+
     sortedPeriods = _.sortBy(COURSE_PERIODS, (period) ->
       parseInt(period.name)
     )
 
-    commonActions.click(firstPeriodItemLink)
-
-    expect(@selectedPeriod).to.deep.equal(sortedPeriods[0])
+    commonActions.click(lastPeriodItemLink)
+    expect(@transitionSpy).to.have.been.calledWith(
+      '/test/test/test', {}, {tab: COURSE_PERIODS.length - 1}
+    )
+    expect(@selectedPeriod).to.deep.equal(_.last(sortedPeriods))
 
     done()

{expect} = require 'chai'
_ = require 'underscore'

{Promise} = require 'es6-promise'
React = require 'react/addons'

{componentStub, commonActions}   = require './helpers/utilities'



    handleSelect = (period) =>
      @selectedPeriod = period
    @transitionSpy = sinon.spy()
    Component = StubContext(CoursePeriodsNav, {router: {
      transitionTo: @transitionSpy
      getCurrentQuery: -> {tab: 0}
      getCurrentPathname: -> '/test/test/test'
    }})
    componentStub
      .render(<Component
        courseId={COURSE_ID}
        handleSelect={handleSelect}
        periods={COURSE_PERIODS}/>)
