summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-07 10:01:34 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-07 10:01:34 +0000
commit4d6c03475207b12bb64f3ce30169531d78abba11 (patch)
treef41b9cd7b0b0b135b9dfc729ed722db160c883f2 /bootstraptest/test_knownbug.rb
parent3e2fe4a1eb301b6a3e089209389e8994fde7443b (diff)
add test_knownbug [ruby-core:14813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index d47449f..9f770a7 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -66,3 +66,26 @@ assert_equal 'ok', %q{
end
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]'