     # process.on 'uncaughtException'
     @sinon.stub process, 'on', -> null
     # config
-    @originalApiInterval = process.env.HUBOT_AUTO_FAV_API_INTERVAL
-    @originalKeywords = process.env.HUBOT_AUTO_FAV_KEYWORDS
-    @originalInterval = process.env.HUBOT_AUTO_FAV_INTERVAL
-    @originalRoom = process.env.HUBOT_AUTO_FAV_ROOM
-    process.env.HUBOT_AUTO_FAV_API_INTERVAL = 0
-    process.env.HUBOT_AUTO_FAV_KEYWORDS = '["#hitoridokusho"]'
-    process.env.HUBOT_AUTO_FAV_INTERVAL = 10
-    process.env.HUBOT_AUTO_FAV_ROOM = 'hitoridokusho'
+    @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 =

          done()
        catch e
          done e
      , 10

    @robot.run()

  afterEach (done) ->
    process.env = @originalEnv
    @robot.brain.on 'close', =>
      @sinon.restore()
      done()
    @robot.shutdown()

  describe 'start', ->
    it 'send "https://twitter.com/bouzuya/status/12345"', (done) ->
      setTimeout =>
        try
          assert @messageRoom.callCount is 1
