     editor = rootView.getActiveView()
 
   afterEach ->
-    fs.remove(path) if fs.exists(path)
+    fsUtils.remove(path) if fsUtils.exists(path)
 
   it "strips trailing whitespace before an editor saves a buffer", ->
-    spyOn(fs, 'write')
+    spyOn(fsUtils, 'write')
 
     config.set("whitespace.ensureSingleTrailingNewline", false)
     config.update()

      editor.insertText "no trailing newline"
      editor.getBuffer().save()
      expect(editor.getText()).toBe "no trailing newline"


RootView = require 'root-view'
fsUtils = require 'fs-utils'

describe "Whitespace", ->
  [editor, path] = []

  beforeEach ->
    path = "/tmp/atom-whitespace.txt"
    fsUtils.write(path, "")
    window.rootView = new RootView
    rootView.open(path)

