mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
f033cfa381
* lib/rubygems/test_case.rb (teardown): call `Gem::refresh()` at the end of `teardown`. On parallel test sometimes fails test process. The reason is: (1) previous tests remains `Gem::Specification@@stubs` value which points to temporary directories and the directories are removed by `teardown` method of previous test. (2) `require 'rubygems/gem_runner'` in `test_gem_gem_runner.rb` tries to require test utility file. However, with strange `@@stubs` RubyGems tries to load specification from removed directory. `StubSpecification#to_spec` returns `nil` and error will occur. The solution this patch employs is to refresh all of parameters includes `Gem::Specification@@stubs` by `Gem::refresh()`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |
||
---|---|---|
.. | ||
commands | ||
core_ext | ||
ext | ||
package | ||
request | ||
request_set | ||
resolver | ||
security | ||
source | ||
ssl_certs | ||
util | ||
available_set.rb | ||
basic_specification.rb | ||
command.rb | ||
command_manager.rb | ||
compatibility.rb | ||
config_file.rb | ||
defaults.rb | ||
dependency.rb | ||
dependency_installer.rb | ||
dependency_list.rb | ||
deprecate.rb | ||
doctor.rb | ||
errors.rb | ||
exceptions.rb | ||
ext.rb | ||
gem_runner.rb | ||
gemcutter_utilities.rb | ||
indexer.rb | ||
install_default_message.rb | ||
install_message.rb | ||
install_update_options.rb | ||
installer.rb | ||
installer_test_case.rb | ||
LICENSE.txt | ||
local_remote_options.rb | ||
mock_gem_ui.rb | ||
name_tuple.rb | ||
package.rb | ||
package_task.rb | ||
path_support.rb | ||
platform.rb | ||
psych_additions.rb | ||
psych_tree.rb | ||
rdoc.rb | ||
remote_fetcher.rb | ||
request.rb | ||
request_set.rb | ||
requirement.rb | ||
resolver.rb | ||
security.rb | ||
server.rb | ||
source.rb | ||
source_list.rb | ||
source_local.rb | ||
source_specific_file.rb | ||
spec_fetcher.rb | ||
specification.rb | ||
stub_specification.rb | ||
syck_hack.rb | ||
test_case.rb | ||
test_utilities.rb | ||
text.rb | ||
uninstaller.rb | ||
uri_formatter.rb | ||
user_interaction.rb | ||
util.rb | ||
validator.rb | ||
version.rb | ||
version_option.rb |