summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-13 16:40:33 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-13 16:40:33 +0000
commit1319ad22d84145eeb7dc2e7c405d413d47cf09f6 (patch)
treebbe3edab181fce7ef4219a096e16786d59ad2523 /bootstraptest
parent92f510a9d9014afdaa2f26a04ff250455ea35162 (diff)
* 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
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_struct.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstraptest/test_struct.rb b/bootstraptest/test_struct.rb
new file mode 100644
index 0000000..a65964d
--- /dev/null
+++ b/bootstraptest/test_struct.rb
@@ -0,0 +1,5 @@
+assert_equal 'Struct::Foo', %q{
+ Struct.instance_eval { const_set(:Foo, nil) }
+ Struct.new("Foo")
+ Struct::Foo
+}