       nock.cleanAll()
 
     it 'should reply to User to indicate a server failure has occurred', ->
-      co =>
+      co ->
         yield room.user.say 'testUser', 'http://testURL.com'
         yield new Promise.delay(1000)  # required to prevent the code from
                                        # racing ahead of the code that

    it 'should match FTPs containing individual pages', ->
      urlRepresentation = 'ftp://ftp.example.com/index.zip'

      room.user.say('user1', "#{urlRepresentation}").then =>
        expect(room.messages).to.eql [
          [ 'user1', "#{urlRepresentation}" ]
          [ 'hubot', "Meow, Uploading: #{urlRepresentation}" ]
        ]

    it 'should match when using domain name without ftp', ->
      urlRepresentation = 'ftp://example.com/index.html?file=requestedFileName.zip'

      room.user.say('user1', "#{urlRepresentation}").then =>
        expect(room.messages).to.eql [
          [ 'user1', "#{urlRepresentation}" ]
          [ 'hubot', "Meow, Uploading: #{urlRepresentation}" ]
        ]

    it 'should match when using domain name ftp with user password and decorator symbol', ->
      urlRepresentation = 'ftp://user:password@host.private'

      room.user.say('user1', "#{urlRepresentation}").then =>
        expect(room.messages).to.eql [
          [ 'user1', "#{urlRepresentation}" ]
          [ 'hubot', "Meow, Uploading: #{urlRepresentation}" ]


    room = null

    beforeEach ->
  
      # stub out both a Slack room and the backend API server
      room = helper.createRoom()
