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

CSON = require 'season'

defs = CSON.readFileSync("#{__dirname}/../snippets/language-haskell.cson")

describe "Snippets", ->
  [editorElement, editor, Snippets] = []

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