From ad82a53e5df909c10eb631b791dcc2af3d72972c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 17 Jan 2008 16:53:48 +0000 Subject: * 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 --- bootstraptest/test_attr.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bootstraptest/test_attr.rb (limited to 'bootstraptest') diff --git a/bootstraptest/test_attr.rb b/bootstraptest/test_attr.rb new file mode 100644 index 0000000000..c70e2c21a6 --- /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]' -- cgit v1.2.3