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:
parent
8db529ca2b
commit
05d8e212b1
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue