   eventStream.msgResponse({data: (JSON.stringify data)})
   ok(fakeStore.pushPayload.calledWith({foo: {id: 1}}))
 
-test  'create with a task will add a new task to the store and associate it to a phase', ->
+test  'action:created with a task will call createOrUpdateTask with the action and data', ->
   data =
     action: 'created'
     meta: null

  eventStream.msgResponse({data: (JSON.stringify data)})
  ok(eventStream.createOrUpdateTask.calledWith('created', {task: {id: 1}}))

test 'updated with a task pushes the data into the store', ->
  data =
    action: 'updated'
    meta: null

  eventStream.msgResponse({data: (JSON.stringify data)})
  ok(eventStream.createOrUpdateTask.calledWith('updated', {task: {id: 1}}))

test 'action:destroy will try to delete the record from the store', ->
  task =
    deleteRecord: sinon.stub()
    triggerLater: -> null
