   params:
     date: moment(TimeStore.getNow()).format('YYYY-MM-DD')
 
-helper = (model) ->
-  {id} = model
-  # Load the plan into the store
-  TaskPlanActions.loaded(model, id)
-  Testing.renderComponent( PlanFooter, props: {id, courseId: "1", getBackToCalendarParams} )
-
+helper = (model) -> PlanRenderHelper(model, PlanFooter, {getBackToCalendarParams})
 
 describe 'Task Plan Footer', ->
   beforeEach ->

{expect} = require 'chai'

React = require 'react'
_ = require 'underscore'
moment = require 'moment'


dayAfter = (new Date(tomorrow + 1000 * 3600 * 24)).toString()


NEW_READING = ExtendBasePlan({type: 'reading', id: "_CREATING_1"})
UNPUBLISHED_READING = ExtendBasePlan({type: 'reading'})
PUBLISHED_READING = ExtendBasePlan({type: 'reading', published_at: yesterday})
PAST_DUE_PUBLISHED_READING = ExtendBasePlan({type: 'reading', published_at: two_days_ago}, {opens_at: two_days_ago, due_at: yesterday})
VISIBLE_READING = ExtendBasePlan({type: 'reading', published_at: yesterday}, {opens_at: yesterday})
VISIBLE_HW = ExtendBasePlan({type: 'homework', published_at: yesterday}, {opens_at: yesterday})

NEW_HW = ExtendBasePlan({type: 'homework', id: "_CREATING_1"})
HW_WITH_EXERCISES = ({
  type: 'homework',
  settings: {
    exercise_ids: ['1']
  }
})


# Stub the function, TODO - bring in helper
getBackToCalendarParams = ->
