mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
074d49e37a
commit
7eb2e99e70
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,8 @@ class TC_KnownBugs < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_block_arg1
|
||||
# &b wrongly captures the upper block such as the one given to
|
||||
# this method, if no block is given on yield.
|
||||
just_yield {|&b|
|
||||
assert_equal(nil, b)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue