         runs ->
           expect(editorView.querySelector('.autocomplete-plus')).not.toExist()
 
-    describe 'accepting suggestions', ->
-      it 'hides the suggestions list when a suggestion is confirmed', ->
-        expect(editorView.querySelector('.autocomplete-plus')).not.toExist()
-
-        # Trigger an autocompletion
-        editor.moveToBottom()
-        editor.moveToBeginningOfLine()
-        editor.insertText('f')
-
-        waitForAutocomplete()
-
-        runs ->
-          expect(editorView.querySelector('.autocomplete-plus')).toExist()
-
-          # Accept suggestion
-          suggestionListView = atom.views.getView(autocompleteManager.suggestionList)
-          atom.commands.dispatch(suggestionListView, 'autocomplete-plus:confirm')
-
-          expect(editorView.querySelector('.autocomplete-plus')).not.toExist()
-
-      describe 'when tab is used to accept suggestions', ->
-        beforeEach ->
-          atom.config.set('autocomplete-plus.confirmCompletion', 'tab')
-
-        it 'inserts the word and moves the cursor to the end of the word', ->
-          expect(editorView.querySelector('.autocomplete-plus')).not.toExist()
-
-          # Trigger an autocompletion
-          triggerAutocompletion(editor)
-
-          runs ->
-            # Accept suggestion
-            key = atom.keymaps.constructor.buildKeydownEvent('tab', {target: document.activeElement})
-            atom.keymaps.handleKeyboardEvent(key)
-
-            # Check for result
-            expect(editor.getBuffer().getLastLine()).toEqual('function')
-
-            # Check for cursor position
-            bufferPosition = editor.getCursorBufferPosition()
-            expect(bufferPosition.row).toEqual(13)
-            expect(bufferPosition.column).toEqual(8)
-
-        it 'does not insert the word when enter completion not enabled', ->
-          expect(editorView.querySelector('.autocomplete-plus')).not.toExist()
-
-          # Trigger an autocompletion
-          triggerAutocompletion(editor)
-
-          runs ->
-            # Accept suggestion
-            key = atom.keymaps.constructor.buildKeydownEvent('enter', {keyCode: 13, target: document.activeElement})
-            atom.keymaps.handleKeyboardEvent(key)
-
-            # Check for result
-            expect(editor.getBuffer().getLastLine()).toEqual('')
-
-      describe 'when enter is used to accept suggestions', ->
-        beforeEach ->
-          atom.config.set('autocomplete-plus.confirmCompletion', 'enter')
-
-        it 'inserts the word and moves the cursor to the end of the word', ->
-          expect(editorView.querySelector('.autocomplete-plus')).not.toExist()
-
-          # Trigger an autocompletion
-          triggerAutocompletion(editor)
-
-          runs ->
-
-            # Accept suggestion
-            key = atom.keymaps.constructor.buildKeydownEvent('enter', {target: document.activeElement})
-            atom.keymaps.handleKeyboardEvent(key)
-
-            # Check for result
-            expect(editor.getBuffer().getLastLine()).toEqual('function')
-
-            # Check for cursor position
-            bufferPosition = editor.getCursorBufferPosition()
-            expect(bufferPosition.row).toEqual(13)
-            expect(bufferPosition.column).toEqual(8)
-
-        it 'does not insert the word when tab completion not enabled', ->
-          expect(editorView.querySelector('.autocomplete-plus')).not.toExist()
-
-          # Trigger an autocompletion
-          triggerAutocompletion(editor)
-
-          runs ->
-            # Accept suggestion
-            key = atom.keymaps.constructor.buildKeydownEvent('tab', {target: document.activeElement})
-            atom.keymaps.handleKeyboardEvent(key)
-
-            # Check for result
-            expect(editor.getBuffer().getLastLine()).toEqual('f ')
-
     describe 'select-previous event', ->
       it 'selects the previous item in the list', ->
 


        runs ->
          expect(editorView.querySelector('.autocomplete-plus')).toExist()
          expect(editorView.querySelectorAll('.autocomplete-plus li')).toHaveLength 5
          expect(editorView.querySelector('.autocomplete-plus .list-group').style['max-height']).toBe("#{2 * 25}px")

    describe "when match.snippet is used", ->

        provider =
          selector: '*'
          getSuggestions: ({prefix}) ->
            list = ['ab', 'abc', 'abcd', 'abcde']
            ({text, replacementPrefix: prefix} for text in list)
        mainModule.consumeProvider(provider)

