   describe 'map mapname', ->
 
     it 'should respond with an error if no lobby is filling', (done) ->
+      
+      lobby =
+        map: ''
+
+      hubot.robot.set 'lobby', lobby
+      
       hubot.on('hubot map lkjasfd')
         .spread (response) ->
           expect(response).to.contain 'no pickup filling...'
         .done(done.bind(@, null), done)
 
     it 'should change the map to the given mapname', (done) ->
-      hubot.on('hubot add lkajsdf')
+      lobby =
+        map: 'cp_snakewater_final1'
+
+      hubot.robot.set 'lobby', lobby
+
       hubot.on('hubot map badl')
         .spread (response) ->
           expect(response).to.contain 'changing map to cp_badlands...'

          expect(response).to.contain 'already added...'
        .done(done.bind(@, null), done)

    it 'should responsd with an error if the pickup is full', (done) ->
      hubot.on('hubot add 1')
      hubot.on('hubot add 2')
      hubot.on('hubot add 3')
      hubot.on('hubot add 4')
      hubot.on('hubot add 5')
      hubot.on('hubot add 6')
      hubot.on('hubot add 7')
      hubot.on('hubot add 8')
      hubot.on('hubot add 9')
      hubot.on('hubot add 10')
      hubot.on('hubot add 11')
      hubot.on('hubot add 12')
      hubot.on('hubot add 13')
        .spread (response) ->
          expect(response).to.contain 'the pickup is already full...'


  describe 'add me|username', ->

    it 'should add a nickname to a lobby', (done) ->
      hubot.on('hubot cg')
      hubot.on('hubot add abcd')
        .spread (response) ->
          expect(response).to.contain '| 1/12 | [ abcd ] ||'
        .done(done.bind(@, null), done)

    it 'should respond with an error if the given nickname is already added', (done) ->
      hubot.on('hubot cg')
      hubot.on('hubot add abcd')
      hubot.on('hubot add abcd')
