make sure VIMDIRRM does not bleed into the test environment
This commit is contained in:
@ -11,6 +11,10 @@ require 'etc'
|
|||||||
# | _ \/ _` (_-< / _|
|
# | _ \/ _` (_-< / _|
|
||||||
# |___/\__,_/__/_\__|
|
# |___/\__,_/__/_\__|
|
||||||
class CMDTEST_basic < Cmdtest::Testcase
|
class CMDTEST_basic < Cmdtest::Testcase
|
||||||
|
def setup
|
||||||
|
ENV['VIMDIRRM'] = ''
|
||||||
|
end
|
||||||
|
|
||||||
def test_help
|
def test_help
|
||||||
cmd "vimdir -h" do
|
cmd "vimdir -h" do
|
||||||
exit_zero
|
exit_zero
|
||||||
@ -79,6 +83,7 @@ end
|
|||||||
# |__/
|
# |__/
|
||||||
class CMDTEST_mydir < Cmdtest::Testcase
|
class CMDTEST_mydir < Cmdtest::Testcase
|
||||||
def setup
|
def setup
|
||||||
|
ENV['VIMDIRRM'] = ''
|
||||||
import_file "test/replacer.sh", "./"
|
import_file "test/replacer.sh", "./"
|
||||||
import_file "test/saver.sh", "./"
|
import_file "test/saver.sh", "./"
|
||||||
import_file "test/memoryhole.sh", "./"
|
import_file "test/memoryhole.sh", "./"
|
||||||
@ -384,6 +389,7 @@ end
|
|||||||
# |_|\_\___/__/\__\___\__,_\__,_|_|_|
|
# |_|\_\___/__/\__\___\__,_\__,_|_|_|
|
||||||
class CMDTEST_mynesteddir < Cmdtest::Testcase
|
class CMDTEST_mynesteddir < Cmdtest::Testcase
|
||||||
def setup
|
def setup
|
||||||
|
ENV['VIMDIRRM'] = ''
|
||||||
import_file "test/replacer.sh", "./"
|
import_file "test/replacer.sh", "./"
|
||||||
import_file "test/saver.sh", "./"
|
import_file "test/saver.sh", "./"
|
||||||
import_directory "test/mynesteddir/", "./mynesteddir/"
|
import_directory "test/mynesteddir/", "./mynesteddir/"
|
||||||
@ -433,6 +439,7 @@ end
|
|||||||
# |_|
|
# |_|
|
||||||
class CMDTEST_myswapdir < Cmdtest::Testcase
|
class CMDTEST_myswapdir < Cmdtest::Testcase
|
||||||
def setup
|
def setup
|
||||||
|
ENV['VIMDIRRM'] = ''
|
||||||
import_file "test/replacer.sh", "./"
|
import_file "test/replacer.sh", "./"
|
||||||
import_directory "test/myswapdir/", "./myswapdir/"
|
import_directory "test/myswapdir/", "./myswapdir/"
|
||||||
end
|
end
|
||||||
@ -481,6 +488,7 @@ end
|
|||||||
# |_|
|
# |_|
|
||||||
class CMDTEST_myswapdir < Cmdtest::Testcase
|
class CMDTEST_myswapdir < Cmdtest::Testcase
|
||||||
def setup
|
def setup
|
||||||
|
ENV['VIMDIRRM'] = ''
|
||||||
import_file "test/replacer.sh", "./"
|
import_file "test/replacer.sh", "./"
|
||||||
import_file "test/saver.sh", "./"
|
import_file "test/saver.sh", "./"
|
||||||
import_directory "test/myspacedir/", "./myspacedir/"
|
import_directory "test/myspacedir/", "./myspacedir/"
|
||||||
@ -530,6 +538,7 @@ end
|
|||||||
#
|
#
|
||||||
class CMDTEST_myswapdir < Cmdtest::Testcase
|
class CMDTEST_myswapdir < Cmdtest::Testcase
|
||||||
def setup
|
def setup
|
||||||
|
ENV['VIMDIRRM'] = ''
|
||||||
import_file "test/saver.sh", "./"
|
import_file "test/saver.sh", "./"
|
||||||
import_directory "test/myunfortunateprefixdir/", "./myprefixdir/"
|
import_directory "test/myunfortunateprefixdir/", "./myprefixdir/"
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user