From 2fe6158b36d75bc92b14ab8a13f1c9ab0520b03e Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 19 May 2008 16:47:42 +0000 Subject: * bootstraptest/test_knownbug.rb: fix a test. "block_given?" returns true if "yield" can be used. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstraptest') diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index d5845d149..9f1bbc8a4 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -7,9 +7,9 @@ assert_equal 'ok', %q{ class C define_method(:foo) { if block_given? - :ok - else :ng + else + :ok end } end -- cgit