```coffeescript
module.exports =
  openPath: (path, callback) ->
    waitsForPromise -> atom.workspace.open(path)

    runs ->
      callback(atom.views.getView(atom.workspace.getActivePaneItem()))

  rowRangeFrom: (marker) ->
    [marker.getTailBufferPosition().row, marker.getHeadBufferPosition().row]
```

Attach the workspace to the DOM in specs.
user
```coffeescript
module.exports =
  openPath: (path, callback) ->
    workspaceElement = atom.views.getView(atom.workspace)
    jasmine.attachToDOM(workspaceElement)

    waitsForPromise -> atom.workspace.open(path)

    runs ->
      callback(atom.views.getView(atom.workspace.getActivePaneItem()))

  rowRangeFrom: (marker) ->
    [marker.getTailBufferPosition().row, marker.getHeadBufferPosition().row]
```
assistant