       expect(linter.views.bottomContainer.status.count).toBe(1)
   describe 'ignoreVCSIgnoredFiles', ->
     it 'ignores the file if its ignored by the VCS', ->
-      filePath = "/tmp/linter_test_file"
-      FS.writeFileSync(filePath, "'use strict'\n")
+      filePath = Path.join(TempDir, 'linter_spec_ignored_vcs.min.js')
+      FS.writeFileSync(filePath, 'Hello Dolly')
 
       atom.config.set('linter.ignoreVCSIgnoredFiles', true)
       linterProvider = getLinter()

describe 'Linter Config', ->
  linter = null
  {getLinter, getMessage} = require('./common')
  CP = require('child_process')
  FS = require('fs')
  Helpers = require('../lib/helpers')
  beforeEach ->
    waitsForPromise ->
      atom.packages.activatePackage('linter').then ->


  describe 'ignoreMatchedFiles', ->
    it 'ignores the file if it matches pattern', ->
      filePath = Path.join(TempDir, 'linter_spec_ignored_match.min.js')
      FS.writeFileSync(filePath, 'Hello Dolly')

      atom.config.set('linter.ignoreMatchedFiles', '/**/*.min.{js,css}')
      linterProvider = getLinter()
