Prevent title change during specs

This commit is contained in:
Nathan Sobo
2015-10-12 15:19:55 -06:00
parent 79d9a13ea7
commit 69e8b0cfb1
5 changed files with 15 additions and 13 deletions

View File

@@ -104,7 +104,10 @@ class AtomEnvironment extends Model
###
# Call .loadOrCreate instead
constructor: ->
constructor: (params={}) ->
{setRepresentedFilename} = params
@setRepresentedFilename = setRepresentedFilename if setRepresentedFilename?
@state = {version: @constructor.version}
@loadTime = null

View File

@@ -42,7 +42,7 @@ try
logFile: getWindowLoadSettings().logFile
headless: getWindowLoadSettings().headless
testPaths: getWindowLoadSettings().testPaths
buildAtomEnvironment: -> new AtomEnvironment
buildAtomEnvironment: (params) -> new AtomEnvironment(params)
legacyTestRunner: legacyTestRunner
})
catch error