mirror of
https://github.com/atom/atom.git
synced 2026-02-06 04:34:55 -05:00
Move toExistOnDisk matcher to spec helper
This commit is contained in:
@@ -37,12 +37,6 @@ describe 'Package Generator', ->
|
||||
packagePath = "/tmp/atom-packages/#{packageName}"
|
||||
fs.remove(packagePath) if fs.exists(packagePath)
|
||||
|
||||
@addMatchers
|
||||
toExistOnDisk: (expected) ->
|
||||
notText = this.isNot and " not" or ""
|
||||
@message = -> return "Expected path '" + @actual + "'" + notText + " to exist."
|
||||
fs.exists(@actual)
|
||||
|
||||
afterEach ->
|
||||
fs.remove(packagePath) if fs.exists(packagePath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user