* eval.c (rb_f_block_given_p): fix to skip class frame.

[ruby-core:14813]
* KNOWNBUGS.rb, bootstraptest/test_method.rb: move solved test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2008-06-15 16:50:37 +00:00
parent 1c4f7a4c64
commit faa93e847d
4 changed files with 44 additions and 28 deletions

View file

@ -3,32 +3,6 @@
# So all tests will cause failure.
#
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?
:ng
else
:ok
end
}
end
C.new.foo
}, '[ruby-core:14813]'
assert_equal %q{[:bar, :foo]}, %q{
def foo
klass = Class.new do