Add cd test for symlink'ed dir

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2014-02-17 16:55:36 -05:00
parent d7cce709f9
commit ef09526740
1 changed files with 19 additions and 0 deletions

View File

@ -100,5 +100,24 @@ define(["Filer", "util"], function(Filer, util) {
});
});
it('should follow symlinks to dirs', function(done) {
var fs = util.fs();
fs.mkdir('/dir', function(error) {
if(error) throw error;
fs.symlink('/dir', '/link', function(error) {
if(error) throw error;
var shell = fs.Shell();
shell.cd('link', function(error) {
expect(error).not.to.exist;
expect(shell.cwd).to.equal('/link');
done();
});
});
});
});
});
});