summaryrefslogtreecommitdiff
path: root/bootstraptest/test_attr.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-17 16:53:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-17 16:53:48 +0000
commitad82a53e5df909c10eb631b791dcc2af3d72972c (patch)
treed550a448ed644ab2eedff667f657706acf6f13ea /bootstraptest/test_attr.rb
parent08c319ee2a95312859d57156709a5effeb7dac5c (diff)
* bootstraptest/test_attr.rb: added for [ruby-core:15120].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_attr.rb')
-rw-r--r--bootstraptest/test_attr.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstraptest/test_attr.rb b/bootstraptest/test_attr.rb
new file mode 100644
index 0000000..c70e2c2
--- /dev/null
+++ b/bootstraptest/test_attr.rb
@@ -0,0 +1,10 @@
+assert_equal %{ok}, %{
+ class A
+ attr :m
+ end
+ begin
+ A.new.m(3)
+ rescue ArgumentError => e
+ print "ok"
+ end
+}, '[ruby-core:15120]'