             }
 
             it("Should show the mentions list when typing a mention on a new line and remain visible when a space is added if search spaces is true") {
-                mentionsListener = generateMentionsListener(searchSpacesInMentions: true)
+                mentionsListener = generateMentionsListener(searchSpacesInMentions: true, spaceAfterMention: false)
                 textView.insertText("\n@t")
 
                 expect(self.hidingMentionsList).to(beFalsy())

            }

            it("Should show the mentions list when typing a mention and remain visible when a space is added if search spaces is true") {
                mentionsListener = generateMentionsListener(searchSpacesInMentions: true)
                textView.insertText("@t")

                expect(self.hidingMentionsList).to(beFalsy())

            let textView = UITextView()

            it("Should show the mentions list when typing a mention and hide when a space is added if search spaces is false") {
                mentionsListener = generateMentionsListener(searchSpacesInMentions: false, spaceAfterMention: false)
                textView.insertText("@t")

                expect(self.hidingMentionsList).to(beFalsy())
