diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-05-01 23:00:14 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-03 14:16:55 -0400 |
commit | d84fe0a1b0df64f07ba14137ae94bb843ad4fe2d (patch) | |
tree | a23acb792d798890898d233fa560faf7c44f5ea9 | |
parent | 71b1f4ef5af62b8064f8266dae600026816c6806 (diff) | |
download | rneovim-d84fe0a1b0df64f07ba14137ae94bb843ad4fe2d.tar.gz rneovim-d84fe0a1b0df64f07ba14137ae94bb843ad4fe2d.tar.bz2 rneovim-d84fe0a1b0df64f07ba14137ae94bb843ad4fe2d.zip |
Fix unit test cleanup of path_shorten_fname_if_possible.
-rw-r--r-- | test/unit/path.moon | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/path.moon b/test/unit/path.moon index 616fa2f076..6aecdfe67c 100644 --- a/test/unit/path.moon +++ b/test/unit/path.moon @@ -113,10 +113,11 @@ describe 'path function', -> eq 'directory/file.txt', (ffi.string path.path_shorten_fname full, dir) describe 'path_shorten_fname_if_possible', -> + cwd = lfs.currentdir! before_each -> lfs.mkdir 'ut_directory' after_each -> - lfs.chdir '..' + lfs.chdir cwd lfs.rmdir 'ut_directory' describe 'path_shorten_fname_if_possible', -> |