                       expect(u).equal(user2)
                       done()
 
-      describe 'Direct', ->
+
+      describe 'Direct messaging', ->
 
         it 'should send direct messages', (done) ->
           txt = 'Test message.'

                socket1.emit 'roomHistory', roomName1, (error, data) ->
                  expect(error).ok
                  done()

        it 'should list all rooms', (done) ->
          chatServer = new ChatService { port : port }, null, state
          room1 = new Room chatServer, roomName1
          room1.initState { whitelistOnly : true }, ->
            room2 = new Room chatServer, roomName2
            chatServer.chatState.addRoom room1, ->
              chatServer.chatState.addRoom room2, ->
                socket1 = ioClient.connect url1, makeParams(user1)
                socket1.on 'loginConfirmed', ->
                  socket1.emit 'listRooms', (error, data) ->
                    expect(data).an('array')
                    expect(data).include(roomName2)
                    expect(data).include(roomName1)
                    done()

        it 'should send whitelistonly mode', (done) ->
          chatServer = new ChatService { port : port }, null, state

Redis = require 'ioredis'


describe 'Chat service.', ->

  states  = [ 'memory' , 'redis' ]

