diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-12-19 16:37:45 +0000 |
---|---|---|
committer | Famiu Haque <famiuhaque@proton.me> | 2023-05-21 15:14:01 +0600 |
commit | 1fe1bb084d0099fc4f9bfdc11189485d0f74b75a (patch) | |
tree | ec823587a4c7ea6991330f6db362846e0fb7bc21 /test/functional/legacy/012_directory_spec.lua | |
parent | e3e6fadfd82861471c32fdcabe00bbef3de84563 (diff) | |
download | rneovim-1fe1bb084d0099fc4f9bfdc11189485d0f74b75a.tar.gz rneovim-1fe1bb084d0099fc4f9bfdc11189485d0f74b75a.tar.bz2 rneovim-1fe1bb084d0099fc4f9bfdc11189485d0f74b75a.zip |
refactor(options): deprecate nvim[_buf|_win]_[gs]et_option
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: famiu <famiuhaque@protonmail.com>
Diffstat (limited to 'test/functional/legacy/012_directory_spec.lua')
-rw-r--r-- | test/functional/legacy/012_directory_spec.lua | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/functional/legacy/012_directory_spec.lua b/test/functional/legacy/012_directory_spec.lua index 050e3855fe..f44ba10f7f 100644 --- a/test/functional/legacy/012_directory_spec.lua +++ b/test/functional/legacy/012_directory_spec.lua @@ -15,7 +15,6 @@ local clear = helpers.clear local insert = helpers.insert local command = helpers.command local write_file = helpers.write_file -local curbufmeths = helpers.curbufmeths local expect_exit = helpers.expect_exit local mkdir = helpers.mkdir @@ -58,9 +57,9 @@ describe("'directory' option", function() line 3 Abcdefghij end of testfile]]) - meths.set_option('swapfile', true) - curbufmeths.set_option('swapfile', true) - meths.set_option('directory', '.') + meths.set_option_value('swapfile', true, {}) + meths.set_option_value('swapfile', true, {buf=0}) + meths.set_option_value('directory', '.', {}) -- sanity check: files should not exist yet. eq(nil, luv.fs_stat('.Xtest1.swp')) @@ -72,7 +71,7 @@ describe("'directory' option", function() -- reading the output from :!ls. neq(nil, luv.fs_stat('.Xtest1.swp')) - meths.set_option('directory', './Xtest2,.') + meths.set_option_value('directory', './Xtest2,.', {}) command('edit Xtest1') poke_eventloop() @@ -81,10 +80,10 @@ describe("'directory' option", function() eq({ "Xtest1.swp", "Xtest3" }, ls_dir_sorted("Xtest2")) - meths.set_option('directory', 'Xtest.je') + meths.set_option_value('directory', 'Xtest.je', {}) command('bdelete') command('edit Xtest2/Xtest3') - eq(true, curbufmeths.get_option('swapfile')) + eq(true, meths.get_option_value('swapfile', {buf=0})) poke_eventloop() eq({ "Xtest3" }, ls_dir_sorted("Xtest2")) |