summaryrefslogtreecommitdiff
path: root/test/ruby/test_env.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-30 07:12:49 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-30 07:12:49 +0000
commit1fcb7a5ee0f346f755735d349a405eeccf81fc40 (patch)
tree5d9ba28eb1a9390c531b5b4109c71a259837e198 /test/ruby/test_env.rb
parent85bcd2587794dbe653523847bc01cab4948be2d4 (diff)
* win32/win32.c (rb_w32_getenv): should return NULL if specified name
is empty. a patch from Heesob Park at [ruby-core:32650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_env.rb')
-rw-r--r--test/ruby/test_env.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb
index 97bf8fa476..681b21d614 100644
--- a/test/ruby/test_env.rb
+++ b/test/ruby/test_env.rb
@@ -96,6 +96,7 @@ class TestEnv < Test::Unit::TestCase
assert_raise(ArgumentError) { ENV["foo\0bar"] }
ENV[PATH_ENV] = ""
assert_equal("", ENV[PATH_ENV])
+ assert_nil(ENV[""])
end
def test_fetch