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


describe.only 'bus', ->

  Given -> @date = new Date

  Given ->
    @Sio = class Sio extends EventEmitter

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


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

  Given -> @bus = @Bus()
