From 2075bc51788e018c60c95c2f50442ad6092bba29 Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 17 Oct 2017 07:41:04 +0000 Subject: [PATCH] Fix the leak in `TestRDocGeneratorDarkfish#test_generated_method_with_html_tag_yield` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rdoc/test_rdoc_generator_darkfish.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb index 352e9336ff..bbe351c0f6 100644 --- a/test/rdoc/test_rdoc_generator_darkfish.rb +++ b/test/rdoc/test_rdoc_generator_darkfish.rb @@ -215,6 +215,7 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase method_name_index = internal_file.index('method_with_html_tag_yield') last_of_method_name_index = method_name_index + internal_file[method_name_index..-1].index('
') - 1 method_name = internal_file[method_name_index..last_of_method_name_index] + f.close assert_includes method_name, '{ |%<<script>alert("atui")</script>>, yield_arg| ... }' end