   eventStream.msgResponse({data: (JSON.stringify data)})
   ok(eventStream.createOrUpdateTask.calledWith('updated', {task: {id: 1}}))
 
-test 'destroy will remove the task from the store', ->
+test 'action:destroy will try to delete the record from the store', ->
   task =
     deleteRecord: sinon.stub()
     triggerLater: -> null

sinon.stub(eventStream, "createOrUpdateTask", -> null)


test 'created without a task pushes the data into the store', ->
  data =
    action: 'created'
    meta: null
    foo:

  eventStream.msgResponse({data: (JSON.stringify data)})
  ok(fakeStore.pushPayload.calledWith({foo: {id: 1}}))

test  'action:created with a task will call createOrUpdateTask with the action and data', ->
  data =
    action: 'created'
    meta: null
