1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_env.rb (setup, teardown): do not depend on the behavior setting nil.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-07-14 23:29:45 +00:00
parent 8db529ca2b
commit 05d8e212b1

View file

@ -6,13 +6,13 @@ class TestEnv < Test::Unit::TestCase
def setup def setup
@backup = ENV['test'] @backup = ENV['test']
@BACKUP = ENV['TEST'] @BACKUP = ENV['TEST']
ENV['test'] = nil ENV.delete('test')
ENV['TEST'] = nil ENV.delete('TEST')
end end
def teardown def teardown
ENV['test'] = @backup ENV['test'] = @backup if @backup
ENV['TEST'] = @BACKUP ENV['TEST'] = @BACKUP if @BACKUP
end end
def test_bracket def test_bracket