1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/rubygems
Yusuke Endoh 7bf51ced55 test/rubygems/test_gem.rb: early failure when there is /tmp/Gemfile
Some test cases in rubygems assume that /tmp/Gemfile does not exist.
If it does, they fail with very difficult-to-understand message:

```
[ 149/2108] TestGemBundlerVersionFinder#test_bundler_version_with_bundle_update_bundler = 0.00
  1) Failure:
TestGemBundlerVersionFinder#test_bundler_version_with_bundle_update_bundler [/home/mame/work/ruby/test/rubygems/test_gem_bundler_version_finder.rb:38]:
Expected Gem::Version.new("2.0.2") to be nil.
```

I spent one hour to debug this issue.  To prevent the same accident,
this change makes the test suite stop when /tmp/Gemfile explicitly.
2019-10-29 14:40:26 +09:00
..
data
fake_certlib
foo
plugin Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
rubygems/commands
sff
specifications
alternate_cert.pem
alternate_cert_32.pem
alternate_key.pem
bad_rake.rb
bogussources.rb
ca_cert.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
child_cert.pem
child_cert_32.pem
child_key.pem
client.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
encrypted_private_key.pem
expired_cert.pem
future_cert.pem
future_cert_32.pem
good_rake.rb
grandchild_cert.pem
grandchild_cert_32.pem
grandchild_key.pem
invalid_client.pem
invalid_issuer_cert.pem
invalid_issuer_cert_32.pem
invalid_key.pem
invalid_signer_cert.pem
invalid_signer_cert_32.pem
invalidchild_cert.pem
invalidchild_cert_32.pem
invalidchild_key.pem
private3072_key.pem
private_key.pem
public3072_cert.pem
public_cert.pem
public_cert_32.pem
public_key.pem
rubygems_plugin.rb
simple_gem.rb
ssl_cert.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
ssl_key.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
test_bundled_ca.rb Merge https://github.com/rubygems/rubygems/pull/2684 2019-03-18 11:46:21 +00:00
test_config.rb
test_deprecate.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem.rb test/rubygems/test_gem.rb: early failure when there is /tmp/Gemfile 2019-10-29 14:40:26 +09:00
test_gem_available_set.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_bundler_version_finder.rb [rubygems/rubygems] Autoswitch to exact bundler version if present 2019-08-17 07:35:48 +09:00
test_gem_command.rb [rubygems/rubygems] Replace domain parameter in Gem::Command#show_lookup_failure with a parameter to suppress suggestions 2019-08-17 07:35:48 +09:00
test_gem_command_manager.rb [rubygems/rubygems] Enable Layout/AlignArray cop 2019-07-31 07:47:02 +08:00
test_gem_commands_build_command.rb [rubygems/rubygems] Set SOURCE_DATE_EPOCH env var if not provided. 2019-09-26 17:48:00 +09:00
test_gem_commands_cert_command.rb Clean up temporary expired cert file 2019-07-02 15:02:16 +09:00
test_gem_commands_check_command.rb
test_gem_commands_cleanup_command.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_commands_contents_command.rb
test_gem_commands_dependency_command.rb Update rubygems with latest upstream changes 2019-04-28 11:07:45 +09:00
test_gem_commands_environment_command.rb [rubygems/rubygems] Drop support for 'gem env packageversion' 2019-07-31 07:47:02 +08:00
test_gem_commands_fetch_command.rb
test_gem_commands_generate_index_command.rb
test_gem_commands_help_command.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_commands_info_command.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_commands_install_command.rb [rubygems/rubygems] Bump rubocop to 0.74.0 and fix new offenses 2019-09-05 18:48:15 +09:00
test_gem_commands_list_command.rb
test_gem_commands_lock_command.rb
test_gem_commands_mirror.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_commands_open_command.rb
test_gem_commands_outdated_command.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_commands_owner_command.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
test_gem_commands_pristine_command.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
test_gem_commands_push_command.rb [rubygems/rubygems] Little refactor to avoid rubocop's false positive 2019-09-05 18:42:18 +09:00
test_gem_commands_query_command.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_commands_search_command.rb
test_gem_commands_server_command.rb
test_gem_commands_setup_command.rb [rubygems/rubygems] Bump rubocop to 0.74.0 and fix new offenses 2019-09-05 18:48:15 +09:00
test_gem_commands_signin_command.rb [rubygems/rubygems] Bump rubocop to 0.74.0 and fix new offenses 2019-09-05 18:48:15 +09:00
test_gem_commands_signout_command.rb
test_gem_commands_sources_command.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_commands_specification_command.rb
test_gem_commands_stale_command.rb
test_gem_commands_uninstall_command.rb [rubygems/rubygems] Don't fail when uninstall --all with default gem 2019-09-05 18:42:26 +09:00
test_gem_commands_unpack_command.rb
test_gem_commands_update_command.rb [rubygems/rubygems] Enable Layout/AlignArray cop 2019-07-31 07:47:02 +08:00
test_gem_commands_which_command.rb
test_gem_commands_yank_command.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
test_gem_config_file.rb [rubygems/rubygems] Return early if filename is empty 2019-07-31 07:47:00 +08:00
test_gem_dependency.rb [rubygems/rubygems] Add Gem::Dependency#identity method 2019-10-05 10:50:02 +09:00
test_gem_dependency_installer.rb [rubygems/rubygems] Bump rubocop to 0.74.0 and fix new offenses 2019-09-05 18:48:15 +09:00
test_gem_dependency_list.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_dependency_resolution_error.rb
test_gem_doctor.rb
test_gem_ext_builder.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_ext_cmake_builder.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_ext_configure_builder.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_ext_ext_conf_builder.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_ext_rake_builder.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_gem_runner.rb
test_gem_gemcutter_utilities.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_impossible_dependencies_error.rb
test_gem_indexer.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_install_update_options.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_installer.rb [rubygems/rubygems] Remove warning: shadowing outer local variable - spec 2019-07-31 07:47:02 +08:00
test_gem_local_remote_options.rb
test_gem_name_tuple.rb
test_gem_package.rb [rubygems/rubygems] Use dedicated assertion methods 2019-10-05 10:50:01 +09:00
test_gem_package_old.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_package_tar_header.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_package_tar_reader.rb
test_gem_package_tar_reader_entry.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_package_tar_writer.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
test_gem_package_task.rb
test_gem_path_support.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_platform.rb [rubygems/rubygems] add tests 2019-09-26 17:48:01 +09:00
test_gem_rdoc.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_remote_fetcher.rb [rubygems/rubygems] Do not mutate uri.query during s3 signature creation 2019-08-17 07:35:48 +09:00
test_gem_request.rb [rubygems/rubygems] Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION 2019-08-05 18:45:24 +09:00
test_gem_request_connection_pools.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_request_set.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_request_set_gem_dependency_api.rb [rubygems/rubygems] Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION 2019-08-05 18:45:24 +09:00
test_gem_request_set_lockfile.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_request_set_lockfile_parser.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
test_gem_request_set_lockfile_tokenizer.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_requirement.rb Update rubygems with latest upstream changes 2019-04-28 11:07:45 +09:00
test_gem_resolver.rb [rubygems/rubygems] Bump rubocop to 0.74.0 and fix new offenses 2019-09-05 18:48:15 +09:00
test_gem_resolver_activation_request.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_resolver_api_set.rb
test_gem_resolver_api_specification.rb
test_gem_resolver_best_set.rb
test_gem_resolver_composed_set.rb
test_gem_resolver_conflict.rb [rubygems/rubygems] Remove conflict.rb code that was supposed to be removed in Rubygems 3 2019-07-31 07:47:01 +08:00
test_gem_resolver_dependency_request.rb
test_gem_resolver_git_set.rb
test_gem_resolver_git_specification.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_resolver_index_set.rb
test_gem_resolver_index_specification.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_resolver_installed_specification.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
test_gem_resolver_installer_set.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_resolver_local_specification.rb
test_gem_resolver_lock_set.rb
test_gem_resolver_lock_specification.rb
test_gem_resolver_requirement_list.rb
test_gem_resolver_specification.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_resolver_vendor_set.rb
test_gem_resolver_vendor_specification.rb
test_gem_security.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_security_policy.rb Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
test_gem_security_signer.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_security_trust_dir.rb
test_gem_server.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
test_gem_silent_ui.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source_fetch_problem.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source_git.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_source_installed.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source_list.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source_local.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source_lock.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source_specific_file.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source_vendor.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_spec_fetcher.rb
test_gem_specification.rb [rubygems/rubygems] Also bump test variable 2019-10-15 20:56:33 +09:00
test_gem_stream_ui.rb test/rubygems/test_gem_stream_ui.rb (test_ask_for_password): extend the timeout 2019-05-29 13:01:53 +09:00
test_gem_stub_specification.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_text.rb Merge RubyGems upstream: 56c0bbb69e4506bda7ef7f447dfec5db820df20b 2019-03-05 03:32:58 +00:00
test_gem_uninstaller.rb [rubygems/rubygems] Don't fail when uninstall --all with default gem 2019-09-05 18:42:26 +09:00
test_gem_unsatisfiable_dependency_error.rb
test_gem_uri_formatter.rb
test_gem_util.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_validator.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_version.rb Update rubygems with latest upstream changes 2019-04-28 11:07:45 +09:00
test_gem_version_option.rb
test_kernel.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_rake_package.rb [rubygems/rubygems] Cleanup after testing rake package 2019-08-05 18:45:11 +09:00
test_remote_fetch_error.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_require.rb Now keyword parameter warnings are suppressed by 871005bdd2 2019-10-05 11:30:05 +09:00
wrong_key_cert.pem
wrong_key_cert_32.pem