[ruby-cvs:53289] nobu:r46143 (trunk): test/rdoc: avoid tempfile leaks

nobu at ruby-lang.org nobu at ruby-lang.org
Mon May 26 22:33:06 JST 2014


nobu	2014-05-26 22:33:06 +0900 (Mon, 26 May 2014)

  New Revision: 46143

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46143

  Log:
    test/rdoc: avoid tempfile leaks
    
    * test/rdoc/test_rdoc_parser.rb (test_class_for_forbidden): avoid
      tempfile leaks by using `Tempfile.create` instead of
      `Tempfile.open`.
    * test/rdoc/test_rdoc_rd_block_parser.rb (test_parse_include_subtree):
      ditto.
    * test/rdoc/test_rdoc_rdoc.rb (test_parse_file_encoding): ditto.
    * test/rdoc/test_rdoc_rdoc.rb (test_parse_file_forbidden): ditto.

  Modified files:
    trunk/test/rdoc/test_rdoc_parser.rb
    trunk/test/rdoc/test_rdoc_rd_block_parser.rb
    trunk/test/rdoc/test_rdoc_rdoc.rb


More information about the ruby-cvs mailing list