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

* bootstraptest/test_struct.rb: some test moved from test to shut

warning up.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-03-13 16:40:33 +00:00
parent 92f510a9d9
commit 1319ad22d8
3 changed files with 8 additions and 1 deletions

View file

@ -91,7 +91,6 @@ class TestStruct < Test::Unit::TestCase
end
def test_struct_new
Struct.instance_eval { const_set(:Foo, nil) }
assert_raise(NameError) { Struct.new("foo") }
assert_nothing_raised { Struct.new("Foo") }
Struct.instance_eval { remove_const(:Foo) }