           ['hubot', "Members: 20\nPosts: 1959\nComments: 2695\nStars: 3115\nDaily Active Users: 8\nWeekly Active Users: 14\nMonthly Active Users: 15"]
         ]
 
+      it 'emits esa.hear.stats event with args', ->
+        expect(emitted).to.equal true
+        expect(emitted_stats.members).to.equal 20
+
     describe 'post', ->
       context 'in own team', ->
+        emitted = false
+        emitted_post = null
         beforeEach ->
+          room.robot.on 'esa.hear.post', (res, post) ->
+            emitted = true
+            emitted_post = post
           nockScope
             .get("/v1/teams/#{process.env.HUBOT_ESA_TEAM}/posts/1390")
             .query(access_token: process.env.HUBOT_ESA_ACCESS_TOKEN)

              ['hubot', 'esa: 日報/2015/05/09/hi! #api #dev']
            ]

        context 'someone says post url wtih anchor', ->
          beforeEach (done) ->
            room.user.say('gingy', 'https://ginger.esa.io/posts/1390#1-1-1')

      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)
