diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-22 23:38:04 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-22 23:38:04 +0000 |
commit | 1c9b4b8c748d7ba8b84f2ac2c123b36c2f6ec55c (patch) | |
tree | 26e29790ecde56b5af21741511dc6f08cade1c0d /test/ruby | |
parent | 3256a4dc214610884c0eb1e72b0d12242536d7e5 (diff) | |
download | ruby-1c9b4b8c748d7ba8b84f2ac2c123b36c2f6ec55c.tar.gz |
* test/ruby/test_env.rb (TestEnv#test_aset): test updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_env.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index 28f0e87b59..0ee702b222 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -118,7 +118,8 @@ class TestEnv < Test::Unit::TestCase ENV["test"] = "foo" end.join end - assert_raise(TypeError) { ENV["test"] = nil } + assert_nothing_raised { ENV["test"] = nil } + assert_equal(nil, ENV["test"]) assert_raise(ArgumentError) { ENV["foo\0bar"] = "test" } assert_raise(ArgumentError) { ENV["test"] = "foo\0bar" } ENV[PATH_ENV] = "/tmp/".taint |