 
   describe '#Topics', ->
     it 'should get topics', (done) ->
+      (nock 'https://typetalk.com')
+        .post("/oauth2/access_token")
+        .reply 200, Fixture.oauth2.access_token
       (nock 'https://typetalk.com')
         .get('/api/v1/topics')
         .reply 200, Fixture.topics.get


  afterEach ->
    mockery.disable()
    nock.cleanAll()
    robot.shutdown()

  describe '#constructor', ->

process.env.HUBOT_TYPETALK_CLIENT_ID = clientId
process.env.HUBOT_TYPETALK_CLIENT_SECRET = clientSecret
process.env.HUBOT_TYPETALK_ROOMS = topicId
process.env.HUBOT_TYPETALK_AUTO_RECONNECT = "false"
process.env.HUBOT_TYPETALK_STREAMING_URL = "http://localhost:8080"
process.env.HUBOT_LOG_LEVEL = "alert"

host = 'https://typetalk.com'

