               atom.commands.dispatch(treeView.element, "tree-view:paste")
               atom.commands.dispatch(treeView.element, "tree-view:paste")
 
-              extension = getFullExtension(filePath)
-              file = path.join(path.dirname(filePath), path.basename(filePath, extension))
-
-              numberedFileName0 = "#{file}0#{extension}"
-              numberedFileName1 = "#{file}1#{extension}"
-              expect(fs.existsSync(numberedFileName0)).toBeTruthy()
-              expect(fs.existsSync(numberedFileName1)).toBeTruthy()
+              expect(fs.existsSync(path.join(path.dirname(filePath), "test-file0.txt"))).toBeTruthy()
+              expect(fs.existsSync(path.join(path.dirname(filePath), "test-file1.txt"))).toBeTruthy()
               expect(fs.existsSync(filePath)).toBeTruthy()
 
         describe "when a file containing two or more periods has been copied", ->

              atom.commands.dispatch(treeView.element, "tree-view:paste")
              atom.commands.dispatch(treeView.element, "tree-view:paste")

              extension = getFullExtension(filePath)
              file = path.join(path.dirname(filePath), path.basename(filePath, extension))

              numberedFileName0 = "#{file}0#{extension}"
              numberedFileName1 = "#{file}1#{extension}"
              expect(fs.existsSync(numberedFileName0)).toBeTruthy()
              expect(fs.existsSync(numberedFileName1)).toBeTruthy()
              expect(fs.existsSync(filePath)).toBeTruthy()

        describe "when a directory with a period is selected", ->

temp = require('temp').track()
os = require 'os'
eventHelpers = require "./event-helpers"

waitsForFileToOpen = (causeFileToOpen) ->
  waitsFor (done) ->
