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
|
||||
@backup = ENV['test']
|
||||
@BACKUP = ENV['TEST']
|
||||
ENV['test'] = nil
|
||||
ENV['TEST'] = nil
|
||||
ENV.delete('test')
|
||||
ENV.delete('TEST')
|
||||
end
|
||||
|
||||
def teardown
|
||||
ENV['test'] = @backup
|
||||
ENV['TEST'] = @BACKUP
|
||||
ENV['test'] = @backup if @backup
|
||||
ENV['TEST'] = @BACKUP if @BACKUP
|
||||
end
|
||||
|
||||
def test_bracket
|
||||
|
|
Loading…
Reference in a new issue