```coffeescript
SideView = require '../lib/side-view'

describe 'SideView', ->

  side = null
  view = null
  line = null

  beforeEach ->
    line = {}
    side = {
      klass: -> 'klass',
      site: -> 99,
      description: -> '',
      lines: -> [line]
    }
    view = new SideView(side)

  it 'triggers conflict resolution', ->
    side.resolve = -> null
    spyOn(side, "resolve")

    view.useMe()

    expect(side.resolve).toHaveBeenCalled()

  describe 'when chosen as the resolution', ->

    beforeEach ->
      side.wasChosen = -> true
      line.addClass = -> null

    it 'adds the "resolved" class'
    it 'deletes the marker line'

  describe 'when not chosen as the resolution', ->

    beforeEach ->
      side.wasChosen = -> true

    it 'deletes its hunks lines'
    it ''
```

Use a real editor in SideViewSpec.
user
```coffeescript
SideView = require '../lib/side-view'

Conflict = require '../lib/conflict'
util = require './util'

describe 'SideView', ->
  [view, ours, theirs] = []

  beforeEach ->
    editor = util.openPath("single-2way-diff.txt").getEditor()
    conflict = Conflict.all(editor)[0]
    [ours, theirs] = [conflict.ours, conflict.theirs]
    view = new SideView(ours)

  it 'triggers conflict resolution', ->
    spyOn(ours, "resolve")
    view.useMe()
    expect(ours.resolve).toHaveBeenCalled()

  describe 'when chosen as the resolution', ->

    beforeEach ->
      ours.resolve()

    it 'adds the "resolved" class'
    it 'deletes the marker line'

  describe 'when not chosen as the resolution', ->

    beforeEach ->
      theirs.resolve()

    it 'deletes its hunks lines'
    it ''
```
assistant