summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/pending.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/bootstraptest/pending.rb b/bootstraptest/pending.rb
index 9e31d1c585..9629cea636 100644
--- a/bootstraptest/pending.rb
+++ b/bootstraptest/pending.rb
@@ -4,3 +4,22 @@ assert_equal 'ok', %q{
}
:ok
}, '[ruby-dev:32525]'
+
+assert_equal "ok", %q{
+ module Foo
+ end
+
+ begin
+ def foo(&b)
+ Foo.module_eval &b
+ end
+ foo{
+ def bar
+ end
+ }
+ bar
+ rescue NoMethodError
+ :ok
+ end
+}, '[ruby-core:14378]'
+