diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-04 06:58:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 06:58:04 -0700 |
commit | 540360a775a62db5c2722bfd89b6aa91b577d945 (patch) | |
tree | 9c0d0f5a95da8151468a26964dc2a36b586aa7bc /test/functional/legacy/file_perm_spec.lua | |
parent | 9cc8064864374cf85c4273299d42094e3c687941 (diff) | |
download | rneovim-540360a775a62db5c2722bfd89b6aa91b577d945.tar.gz rneovim-540360a775a62db5c2722bfd89b6aa91b577d945.tar.bz2 rneovim-540360a775a62db5c2722bfd89b6aa91b577d945.zip |
test: is_os() #10933
- Move os_name() up to "global helpers".
- Rename it to is_os().
- Make it depend on uname() instead of a running Nvim instance.
Diffstat (limited to 'test/functional/legacy/file_perm_spec.lua')
-rw-r--r-- | test/functional/legacy/file_perm_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/legacy/file_perm_spec.lua b/test/functional/legacy/file_perm_spec.lua index d61fdc9b83..8fdee95e91 100644 --- a/test/functional/legacy/file_perm_spec.lua +++ b/test/functional/legacy/file_perm_spec.lua @@ -21,7 +21,7 @@ describe('Test getting and setting file permissions', function() eq(9, call('len', call('getfperm', tempfile))) eq(1, call('setfperm', tempfile, 'rwx------')) - if helpers.os_name() == 'windows' then + if helpers.is_os('win') then eq('rw-rw-rw-', call('getfperm', tempfile)) else eq('rwx------', call('getfperm', tempfile)) |