summaryrefslogtreecommitdiffstats
path: root/bootstraptest
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
commit699780308d8731258ea543f1cdaf8576718ef5f0 (patch)
treed550a448ed644ab2eedff667f657706acf6f13ea /bootstraptest
parent4e5600e3ce0cb20041aa81cc466425127add825c (diff)
downloadruby-699780308d8731258ea543f1cdaf8576718ef5f0.tar.gz
ruby-699780308d8731258ea543f1cdaf8576718ef5f0.tar.xz
ruby-699780308d8731258ea543f1cdaf8576718ef5f0.zip
* bootstraptest/test_attr.rb: added for [ruby-core:15120].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-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 000000000..c70e2c21a
--- /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]'