 
 describe.only 'bus', ->
 
-  Given -> @date = new Date
+  date = new Date
 
   Given ->
     @Sio = class Sio extends EventEmitter

        action: 'say'
        content: 'hello'
        target: 'you'
        created: @created 


  Given ->
    @Bus = requireSubject 'lib/bus', {
      'socket.io': @Sio
    }

  Given -> @bus = @Bus()

        action: 'say'
        content: 'hello'
        target: 'you'
        created: date
    When -> @message = @bus.message @params
    Then -> expect(@message.data()).toEqual @params
    And -> expect(@message.listeners('built').length).toBe 1
    And -> expect(@message.listeners('built')[0]).toEqual @bus.onBuiltMessage
