summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-07 07:07:44 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-07 07:07:44 +0000
commit48db39e35586b9339995978ccb3eef6d3cb7c703 (patch)
tree5c6a307141bb5c881861e428b35ced44dbec5c16 /bootstraptest/test_knownbug.rb
parent9ad5f854e745043e144408b6408f38dff7bcf880 (diff)
add test_knowbug [ruby-core:14813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index b62d5be..d47449f 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -41,3 +41,28 @@ assert_equal 'ok', %q{
}, '[ruby-dev:32882]'
+assert_equal 'ok', %q{
+ class C
+ define_method(:foo) {
+ if block_given?
+ :ng
+ else
+ :ok
+ end
+ }
+ end
+ C.new.foo
+}, '[ruby-core:14813]'
+
+assert_equal 'ok', %q{
+ class C
+ define_method(:foo) {
+ if block_given?
+ :ok
+ else
+ :ng
+ end
+ }
+ end
+ C.new.foo {}
+}, '[ruby-core:14813]'