vojtajina/testacular — pull request #40 by rdodev (2012-08-29 14:41:48+00:00)
Title: Quick fix for PhantomJS launcher

The id it wanted to append to the temp directory was alphanumeric and due to the truthiness of JS it was trying to cast it to a number, which gave a NaN as a result. Forcibly casting the id toString() solved the issue.

this._tempDir = (env.TMPDIR || env.TMP || env.TEMP || '/tmp') + '/testacular-' + id.toString()