 
     describe 'comment', ->
       context 'in own team', ->
-        beforeEach (done) ->
+        emitted = false
+        emitted_comment = null
+        beforeEach (done) ->
+          room.robot.on 'esa.hear.comment', (res, comment) ->
+            emitted = true
+            emitted_comment = comment
           nockScope
             .get("/v1/teams/#{process.env.HUBOT_ESA_TEAM}/comments/2121")
             .query(access_token: process.env.HUBOT_ESA_ACCESS_TOKEN)

            ['gingy', 'https://ginger.esa.io/posts/1390#comment-2121']
            ['hubot', 'esa: 読みたい']
          ]

      context 'in other team, someone says comment url', ->
        beforeEach (done) ->

      nock.cleanAll()

    context 'someone requests stats', ->
      emitted = false
      emitted_stats = null
      beforeEach (done) ->
        room.robot.on 'esa.hear.stats', (res, stats) ->
          emitted = true
          emitted_stats = stats
        nockScope
          .get("/v1/teams/#{process.env.HUBOT_ESA_TEAM}/stats")
          .query(access_token: process.env.HUBOT_ESA_ACCESS_TOKEN)
