       describe "when `autocomplete.includeCompletionsFromAllBuffers` is true", ->
         it "shows words from all open buffers", ->
           config.set('autocomplete.includeCompletionsFromAllBuffers', true)
-          project.open('sample.txt')
+          project.openSync('sample.txt')
           editor.getBuffer().insert([10,0] ,"extra:SO:extra")
           editor.setCursorBufferPosition([10,8])
           autocomplete.attach()


  beforeEach ->
    window.rootView = new RootView
    editor = new Editor(editSession: project.open('sample.js'))
    atom.activatePackage('autocomplete')
    autocomplete = new AutocompleteView(editor)
    miniEditor = autocomplete.miniEditor


  it "includes completions for the scope's completion preferences", ->
    atom.activatePackage('css-tmbundle', sync: true)
    cssEditor = new Editor(editSession: project.openSync('css.css'))
    autocomplete = new AutocompleteView(cssEditor)

    cssEditor.attachToDom()
