 MeshbluWebsocket = require 'meshblu-websocket'
 MeshbluSocketLogic = require 'meshblu'
 
-describe 'SocketLogic Events', ->
+describe 'WebSocket Events', ->
   before (done) ->
     filename = path.join __dirname, 'meshblu.json'
     @config = new MeshbluConfig(filename: filename).toJSON()

    describe 'when called with a valid request', ->
      beforeEach (done) ->
        @meshblu.devices {}
        @eventForwarder.once 'message', (@message) =>
          done()

      it 'should send a "devices" message', ->
        expect(@message.topic).to.deep.equal 'devices'

    @eventForwarder = new MeshbluWebsocket @config
    @eventForwarder.connect =>
      @eventForwarder.subscribe @config.uuid
      console.log 'calling done...'
      done()

  before (done) ->
