1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
* test/rubygems/test_gem_indexer.rb (setup, teardown): save @tempdir
  to remove it properly.  [Bug #5348]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-05-24 15:37:25 +00:00
parent ce8e2d5404
commit d176c4ee99
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri May 25 00:37:22 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/rubygems/test_gem_indexer.rb (setup, teardown): save @tempdir
to remove it properly. [Bug #5348]
Thu May 24 23:36:51 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vsnprintf.c (BSD_vfprintf): [EXPERIMENTAL] object representation in

View file

@ -24,6 +24,7 @@ class TestGemIndexer < Gem::TestCase
@d2_0_b = quick_spec 'd', '2.0.b'
util_build_gem @d2_0_b
@_tempdir = @tempdir
@tempdir = File.join(@tempdir, 'indexer')
gems = File.join(@tempdir, 'gems')
@ -36,6 +37,11 @@ class TestGemIndexer < Gem::TestCase
:rss_gems_host => 'gems.example.com')
end
def teardown
@tempdir = @_tempdir
super
end
def test_initialize
assert_equal @tempdir, @indexer.dest_directory
assert_equal File.join(Dir.tmpdir, "gem_generate_index_#{$$}"),