     it 'should match when using http and no www prefix', ->
       urlRepresentation = 'https://example.com'
 
-      room.user.say('user1', "#{urlRepresentation}").then =>
+      room.user.say('user1', "#{urlRepresentation}").then ->
         expect(room.messages).to.eql [
           [ 'user1', "#{urlRepresentation}" ]
           [ 'hubot', "Meow, Uploading: #{urlRepresentation}" ]

    it 'should match URLs containing individual pages', ->
      urlRepresentation = 'http://www.example.com/index.html'

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

    it 'should match URLs containing query parameters', ->
      urlRepresentation = 'http://www.example.com/index.html?zip=94109'

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