diff --git a/spec/text-editor-component-spec.coffee b/spec/text-editor-component-spec.coffee index 05a08339c..7176a511d 100644 --- a/spec/text-editor-component-spec.coffee +++ b/spec/text-editor-component-spec.coffee @@ -2686,6 +2686,10 @@ describe "TextEditorComponent", -> describe "middle mouse paste on Linux", -> it "pastes the previously selected text", -> + spyOn(require('ipc'), 'send').andCallFake (eventName, selectedText) -> + if eventName is 'write-text-to-selection-clipboard' + require('clipboard').writeText(selectedText, 'selection') + atom.clipboard.write('') component.listenForMiddleMousePaste()