summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 d47449fbe64..9f770a786b1 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]'