       atom.config.set('wrap-guide.columns', [{pattern: '\.js$', column: 20},
                                              {scope: 'source.js', column: 30}])
       wrapGuide.updateGuide()
-      width = editorView.charWidth * 20
+      width = editor.getDefaultCharWidth() * 20
       expect(width).toBeGreaterThan(0)
       expect($(wrapGuide).position().left).toBe(width)
-
-  it "only attaches to editor views that are part of a pane", ->
-    editorView2 = new EditorView(mini: true)
-    editorView.overlayer.append(editorView2)
-    expect(editorView2.find('.wrap-guide').length).toBe 0


    runs ->
      editor = atom.workspace.getActiveTextEditor()
      editorView = atom.views.getView(editor).__spacePenView
      wrapGuide = workspaceElement.querySelector(".wrap-guide")

  describe ".activate", ->

{$} = require 'atom'

describe "WrapGuide", ->
  [editor, wrapGuide, workspaceElement] = []

  beforeEach ->
    workspaceElement = atom.views.getView(atom.workspace)
