     @robot.run()
 
   afterEach (done) ->
-    process.env.HUBOT_AUTO_FAV_API_INTERVAL = @originalApiInterval
-    process.env.HUBOT_AUTO_FAV_KEYWORDS = @originalKeywords
-    process.env.HUBOT_AUTO_FAV_INTERVAL = @originalInterval
-    process.env.HUBOT_AUTO_FAV_ROOM = @originalRoom
+    process.env = @originalEnv
     @robot.brain.on 'close', =>
       @sinon.restore()
       done()
     @robot.shutdown()
 
   describe 'start', ->
-    it 'send "https://twitter.com/bouzuya/status/12345"', ->
+    it 'send "https://twitter.com/bouzuya/status/12345"', (done) ->
       setTimeout =>
         try
           assert @messageRoom.callCount is 1

          done()
        catch e
          done e
      , 10

    # process.on 'uncaughtException'
    @sinon.stub process, 'on', -> null
    # config
    @originalEnv = process.env
    process.env =
      HUBOT_AUTO_FAV_API_INTERVAL: 0
      HUBOT_AUTO_FAV_KEYWORDS: '["#hitoridokusho"]'
      HUBOT_AUTO_FAV_INTERVAL: 10
      HUBOT_AUTO_FAV_ROOM: 'hitoridokusho'
      HUBOT_AUTO_FAV_SHOW_DETAIL: null
    # twitter
    Twitter = require '../../src/twitter'
    @searchResult =
