diff --git a/tests/spec/fs.rename.spec.js b/tests/spec/fs.rename.spec.js index 51959c2..b58ee11 100644 --- a/tests/spec/fs.rename.spec.js +++ b/tests/spec/fs.rename.spec.js @@ -10,6 +10,23 @@ describe('fs.rename', function() { expect(fs.rename).to.be.a('function'); }); + it.skip('should be able to rename an existing file to the same filename', function(done) { + var fs = util.fs(); + + fs.open('/myfile', 'w+', function(error, fd) { + if(error) throw error; + + fs.close(fd, function(error) { + if(error) throw error; + + fs.rename('/myfile', '/myfile', function(error) { + expect(error).not.to.exist; + done(); + }); + }); + }); + }); + it('should rename an existing file', function(done) { var complete1 = false; var complete2 = false;