         getSpecFiles filepath
 
   getSpecFiles testdir
-  # Remove temporary folder if it already exists
-  try
-    if fs.statSync('/tmp/brunchtest').isDirectory()
-      for f in fs.readdirSync TEMP
-        fs.unlinkSync path.join TEMP, f
-      fs.rmdirSync TEMP
 
-  fs.mkdir TEMP, 0755, ->
-    # Write specs to temporary folder.
-    fs.writeFileSync SPECFILE, specs.join '\n'
-    # Run specs in fake browser.
-    jsdom.env
-      html: path.join brunchdir, 'index.html'
-      scripts: [
-        path.resolve options.buildPath, 'web/js/app.js'
-        path.resolve __dirname, '../vendor/jasmine.js'
-        SPECFILE
-      ]
-      done: (error, window) ->
-        helpers.logError error if error?
-        # If we're testing brunch itself, we don't need to view the output.
-        # TODO: move this to TerminalReporter.
-        stream = if global.jasmine then (->) else util.print
+  # Run specs in fake browser.
+  jsdom.env
+    html: path.join brunchdir, 'index.html'
+    scripts: [
+      path.resolve options.buildPath, 'web/js/app.js'
+      path.resolve __dirname, '../vendor/jasmine.js'
+    ]
+    src: specs
+    done: (error, window) ->
+      helpers.logError error if error?
+      # If we're testing brunch itself, we don't need to view the output.
+      # TODO: move this to TerminalReporter.
+      stream = if global.jasmine then (->) else sys.print
 
-        jasmineEnv = window.jasmine.getEnv()
-        jasmineEnv.reporter = new TerminalReporter
-          print: stream
-          verbose: options.verbose
-          color: yes
-          onComplete: null
-          stackFilter: null
-        jasmineEnv.execute()
-        callback?()
+      jasmineEnv = window.jasmine.getEnv()
+      jasmineEnv.reporter = new TerminalReporter
+        print: stream
+        verbose: options.verbose
+        color: yes
+        onComplete: null
+        stackFilter: null
+      jasmineEnv.execute()
+      callback?()

util = require 'util'
fs = require 'fs'
path = require 'path'
coffee = require 'coffee-script'


helpers = require './helpers'
{TerminalReporter} = require '../vendor/reporter'


exports.run = (options, callback) ->
