diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-17 16:59:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-17 16:59:23 +0000 |
commit | 23980c8ba0a7e332204da31ba2b8ad5ae134c9c6 (patch) | |
tree | b5fc5025a671277f2dc83f3ff76f3f3a7532a96c /bootstraptest | |
parent | ad82a53e5df909c10eb631b791dcc2af3d72972c (diff) | |
download | ruby-23980c8ba0a7e332204da31ba2b8ad5ae134c9c6.tar.gz |
* bootstraptest/test_attr.rb: moved test for [ruby-core:14641].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_attr.rb | 26 | ||||
-rw-r--r-- | bootstraptest/test_knownbug.rb | 23 |
2 files changed, 26 insertions, 23 deletions
diff --git a/bootstraptest/test_attr.rb b/bootstraptest/test_attr.rb index c70e2c21a6..721a847145 100644 --- a/bootstraptest/test_attr.rb +++ b/bootstraptest/test_attr.rb @@ -1,3 +1,29 @@ +assert_equal 'ok', %q{ + module M + class A + class << self + attr_accessor :at + def workflow_rule + yield self + end + + def eval_str(str) + eval(str) + end + end + end + end + begin + M::A.eval_str(<<-END) + workflow_rule do |r| + r.at 1 + end + END + rescue ArgumentError => e + print "ok" + end +}, '[ruby-core:14641]' + assert_equal %{ok}, %{ class A attr :m diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index a2ada5900d..e8ad927962 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -66,29 +66,6 @@ assert_equal 'ok', %q{ C.new.foo {} }, '[ruby-core:14813]' -assert_equal 'ok', %q{ - module M - class A - class << self - attr_accessor :at - def workflow_rule - yield self - end - - def eval_str(str) - eval(str) - end - end - end - end - - M::A.eval_str(<<-END) - workflow_rule do |r| - r.at 1 - end - END -}, '[ruby-core:14641]' - assert_equal 'true', %{ t = Thread.new { loop {} } pid = fork { |