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

      describe "when `autocomplete.includeCompletionsFromAllBuffers` is true", ->
        it "shows words from all open buffers", ->
          config.set('autocomplete.includeCompletionsFromAllBuffers', true)
          project.open('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.openSync('sample.js'))
    atom.activatePackage('autocomplete')
    autocomplete = new AutocompleteView(editor)
    miniEditor = autocomplete.miniEditor
