   describe 'cabal', ->
     beforeEach ->
       waitsForPromise ->
-        atom.workspace.open('sample.cabal')
+        open('sample.cabal')
       runs ->
         editor = atom.workspace.getActiveTextEditor()
         editorElement = atom.views.getView(editor)

  describe 'haskell', ->
    beforeEach ->
      waitsForPromise ->
        atom.workspace.open('sample.hs')
      runs ->
        editor = atom.workspace.getActiveTextEditor()
        editorElement = atom.views.getView(editor)

  describe 'c2hs', ->
    beforeEach ->
      waitsForPromise ->
        open('sample.chs')
      runs ->
        editor = atom.workspace.getActiveTextEditor()
        editorElement = atom.views.getView(editor)
