Test that removing a file updates the view for its containing directory in the TreeView

This commit is contained in:
Nathan Sobo 2012-04-26 15:59:42 -06:00
parent 47c013f817
commit f37017b94c

View File

@ -303,9 +303,7 @@ describe "TreeView", ->
runs ->
expect(rootDirectoryView.entries.find('.entry').length).toBe entriesCountBefore + 1
expect(rootDirectoryView.entries.find('.file:contains(temporary)')).toExist()
fs.remove(temporaryFilePath)
describe "when a file is renamed in an expanded directory", ->
waitsFor "directory view contens to refresh", ->
rootDirectoryView.entries.find('.entry').length == entriesCountBefore