summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-05-30 00:01:50 +0000
committerThe Bundler Bot <bot@bundler.io>2017-05-30 00:01:50 +0000
commit58f37e3bf65ca971f24aea51cffea6b250275d1d (patch)
tree25f39820d704ba6f77167c3e4ff360f3690ecb9d
parentc37ede0a2a233eca23f5dfb121260f13eea3541c (diff)
parent9b134993edc2875e457ddb3b5c4f05f09d84e25a (diff)
downloadbundler-58f37e3bf65ca971f24aea51cffea6b250275d1d.tar.gz
Auto merge of #5634 - koic:specify_require_spec_helper_in_dot_rspec, r=indirect
Specify `--require spec_helper` in .rspec Specifying `--require spec_helper` in .rspec will automatically require spec_helper in *_spec.rb. It isn't necessary to specify `require "spec_helper"` in individual *_spec.rb. I think that it's a [DRY](https://en.wikipedia.org/wiki/Don't_repeat_yourself) way. Refer: https://github.com/rspec/rspec/wiki#rspec
-rw-r--r--.rspec1
-rw-r--r--spec/bundler/bundler_spec.rb1
-rw-r--r--spec/bundler/cli_spec.rb1
-rw-r--r--spec/bundler/compact_index_client/updater_spec.rb1
-rw-r--r--spec/bundler/definition_spec.rb1
-rw-r--r--spec/bundler/dsl_spec.rb1
-rw-r--r--spec/bundler/endpoint_specification_spec.rb1
-rw-r--r--spec/bundler/env_spec.rb1
-rw-r--r--spec/bundler/environment_preserver_spec.rb1
-rw-r--r--spec/bundler/fetcher/base_spec.rb1
-rw-r--r--spec/bundler/fetcher/compact_index_spec.rb1
-rw-r--r--spec/bundler/fetcher/dependency_spec.rb1
-rw-r--r--spec/bundler/fetcher/downloader_spec.rb1
-rw-r--r--spec/bundler/fetcher/index_spec.rb1
-rw-r--r--spec/bundler/fetcher_spec.rb1
-rw-r--r--spec/bundler/friendly_errors_spec.rb1
-rw-r--r--spec/bundler/gem_helper_spec.rb1
-rw-r--r--spec/bundler/gem_version_promoter_spec.rb1
-rw-r--r--spec/bundler/index_spec.rb1
-rw-r--r--spec/bundler/installer/gem_installer_spec.rb1
-rw-r--r--spec/bundler/installer/parallel_installer_spec.rb1
-rw-r--r--spec/bundler/installer/spec_installation_spec.rb1
-rw-r--r--spec/bundler/lockfile_parser_spec.rb1
-rw-r--r--spec/bundler/mirror_spec.rb1
-rw-r--r--spec/bundler/plugin/api/source_spec.rb1
-rw-r--r--spec/bundler/plugin/api_spec.rb1
-rw-r--r--spec/bundler/plugin/dsl_spec.rb1
-rw-r--r--spec/bundler/plugin/index_spec.rb1
-rw-r--r--spec/bundler/plugin/installer_spec.rb1
-rw-r--r--spec/bundler/plugin/source_list_spec.rb1
-rw-r--r--spec/bundler/plugin_spec.rb1
-rw-r--r--spec/bundler/psyched_yaml_spec.rb1
-rw-r--r--spec/bundler/remote_specification_spec.rb1
-rw-r--r--spec/bundler/retry_spec.rb1
-rw-r--r--spec/bundler/ruby_dsl_spec.rb1
-rw-r--r--spec/bundler/ruby_version_spec.rb1
-rw-r--r--spec/bundler/rubygems_integration_spec.rb1
-rw-r--r--spec/bundler/settings_spec.rb1
-rw-r--r--spec/bundler/shared_helpers_spec.rb1
-rw-r--r--spec/bundler/source/git/git_proxy_spec.rb1
-rw-r--r--spec/bundler/source/rubygems/remote_spec.rb1
-rw-r--r--spec/bundler/source/rubygems_spec.rb1
-rw-r--r--spec/bundler/source_list_spec.rb1
-rw-r--r--spec/bundler/source_spec.rb1
-rw-r--r--spec/bundler/spec_set_spec.rb1
-rw-r--r--spec/bundler/ssl_certs/certificate_manager_spec.rb1
-rw-r--r--spec/bundler/ui_spec.rb1
-rw-r--r--spec/bundler/uri_credentials_filter_spec.rb1
-rw-r--r--spec/bundler/version_ranges_spec.rb1
-rw-r--r--spec/bundler/worker_spec.rb1
-rw-r--r--spec/bundler/yaml_serializer_spec.rb1
-rw-r--r--spec/cache/cache_path_spec.rb1
-rw-r--r--spec/cache/gems_spec.rb1
-rw-r--r--spec/cache/git_spec.rb1
-rw-r--r--spec/cache/path_spec.rb1
-rw-r--r--spec/cache/platform_spec.rb1
-rw-r--r--spec/commands/add_spec.rb1
-rw-r--r--spec/commands/binstubs_spec.rb1
-rw-r--r--spec/commands/check_spec.rb1
-rw-r--r--spec/commands/clean_spec.rb1
-rw-r--r--spec/commands/config_spec.rb1
-rw-r--r--spec/commands/console_spec.rb1
-rw-r--r--spec/commands/doctor_spec.rb1
-rw-r--r--spec/commands/exec_spec.rb1
-rw-r--r--spec/commands/help_spec.rb1
-rw-r--r--spec/commands/info_spec.rb1
-rw-r--r--spec/commands/init_spec.rb1
-rw-r--r--spec/commands/inject_spec.rb1
-rw-r--r--spec/commands/install_spec.rb1
-rw-r--r--spec/commands/issue_spec.rb1
-rw-r--r--spec/commands/licenses_spec.rb1
-rw-r--r--spec/commands/lock_spec.rb1
-rw-r--r--spec/commands/newgem_spec.rb1
-rw-r--r--spec/commands/open_spec.rb1
-rw-r--r--spec/commands/outdated_spec.rb1
-rw-r--r--spec/commands/package_spec.rb1
-rw-r--r--spec/commands/pristine_spec.rb1
-rw-r--r--spec/commands/show_spec.rb1
-rw-r--r--spec/commands/update_spec.rb1
-rw-r--r--spec/commands/viz_spec.rb1
-rw-r--r--spec/install/allow_offline_install_spec.rb1
-rw-r--r--spec/install/binstubs_spec.rb1
-rw-r--r--spec/install/bundler_spec.rb1
-rw-r--r--spec/install/deploy_spec.rb1
-rw-r--r--spec/install/failure_spec.rb1
-rw-r--r--spec/install/force_spec.rb1
-rw-r--r--spec/install/gemfile/eval_gemfile_spec.rb1
-rw-r--r--spec/install/gemfile/gemspec_spec.rb1
-rw-r--r--spec/install/gemfile/git_spec.rb1
-rw-r--r--spec/install/gemfile/groups_spec.rb1
-rw-r--r--spec/install/gemfile/path_spec.rb1
-rw-r--r--spec/install/gemfile/platform_spec.rb1
-rw-r--r--spec/install/gemfile/ruby_spec.rb1
-rw-r--r--spec/install/gemfile/sources_spec.rb1
-rw-r--r--spec/install/gemfile/specific_platform_spec.rb1
-rw-r--r--spec/install/gemfile_spec.rb1
-rw-r--r--spec/install/gems/compact_index_spec.rb1
-rw-r--r--spec/install/gems/dependency_api_spec.rb1
-rw-r--r--spec/install/gems/env_spec.rb1
-rw-r--r--spec/install/gems/flex_spec.rb1
-rw-r--r--spec/install/gems/mirror_spec.rb1
-rw-r--r--spec/install/gems/native_extensions_spec.rb1
-rw-r--r--spec/install/gems/post_install_spec.rb1
-rw-r--r--spec/install/gems/resolving_spec.rb1
-rw-r--r--spec/install/gems/standalone_spec.rb1
-rw-r--r--spec/install/gems/sudo_spec.rb1
-rw-r--r--spec/install/gems/win32_spec.rb1
-rw-r--r--spec/install/gemspecs_spec.rb1
-rw-r--r--spec/install/git_spec.rb1
-rw-r--r--spec/install/path_spec.rb1
-rw-r--r--spec/install/post_bundle_message_spec.rb1
-rw-r--r--spec/install/prereleases_spec.rb1
-rw-r--r--spec/install/security_policy_spec.rb1
-rw-r--r--spec/install/yanked_spec.rb1
-rw-r--r--spec/lock/git_spec.rb1
-rw-r--r--spec/lock/lockfile_spec.rb1
-rw-r--r--spec/other/bundle_ruby_spec.rb1
-rw-r--r--spec/other/cli_dispatch_spec.rb1
-rw-r--r--spec/other/ext_spec.rb1
-rw-r--r--spec/other/major_deprecation_spec.rb1
-rw-r--r--spec/other/platform_spec.rb1
-rw-r--r--spec/other/ssl_cert_spec.rb1
-rw-r--r--spec/other/trampoline_spec.rb1
-rw-r--r--spec/plugins/command_spec.rb1
-rw-r--r--spec/plugins/hook_spec.rb1
-rw-r--r--spec/plugins/install_spec.rb1
-rw-r--r--spec/plugins/source/example_spec.rb1
-rw-r--r--spec/plugins/source_spec.rb1
-rw-r--r--spec/quality_spec.rb1
-rw-r--r--spec/realworld/dependency_api_spec.rb1
-rw-r--r--spec/realworld/edgecases_spec.rb1
-rw-r--r--spec/realworld/gemfile_source_header_spec.rb1
-rw-r--r--spec/realworld/mirror_probe_spec.rb1
-rw-r--r--spec/realworld/parallel_spec.rb1
-rw-r--r--spec/resolver/basic_spec.rb1
-rw-r--r--spec/resolver/platform_spec.rb1
-rw-r--r--spec/runtime/executable_spec.rb1
-rw-r--r--spec/runtime/gem_tasks_spec.rb1
-rw-r--r--spec/runtime/inline_spec.rb1
-rw-r--r--spec/runtime/load_spec.rb1
-rw-r--r--spec/runtime/platform_spec.rb1
-rw-r--r--spec/runtime/require_spec.rb1
-rw-r--r--spec/runtime/setup_spec.rb1
-rw-r--r--spec/runtime/with_clean_env_spec.rb1
-rw-r--r--spec/update/gems/post_install_spec.rb1
-rw-r--r--spec/update/git_spec.rb1
-rw-r--r--spec/update/path_spec.rb1
147 files changed, 1 insertions, 146 deletions
diff --git a/.rspec b/.rspec
index 19a7e9ad6d..146d615488 100644
--- a/.rspec
+++ b/.rspec
@@ -1,3 +1,4 @@
--format documentation
--color
--warnings
+--require spec_helper
diff --git a/spec/bundler/bundler_spec.rb b/spec/bundler/bundler_spec.rb
index 1667b8b875..c73bbf3670 100644
--- a/spec/bundler/bundler_spec.rb
+++ b/spec/bundler/bundler_spec.rb
@@ -1,6 +1,5 @@
# encoding: utf-8
# frozen_string_literal: true
-require "spec_helper"
require "bundler"
RSpec.describe Bundler do
diff --git a/spec/bundler/cli_spec.rb b/spec/bundler/cli_spec.rb
index ec1d384851..f893e7799f 100644
--- a/spec/bundler/cli_spec.rb
+++ b/spec/bundler/cli_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/cli"
RSpec.describe "bundle executable" do
diff --git a/spec/bundler/compact_index_client/updater_spec.rb b/spec/bundler/compact_index_client/updater_spec.rb
index c1cae31956..d104d6c961 100644
--- a/spec/bundler/compact_index_client/updater_spec.rb
+++ b/spec/bundler/compact_index_client/updater_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "net/http"
require "bundler/compact_index_client"
require "bundler/compact_index_client/updater"
diff --git a/spec/bundler/definition_spec.rb b/spec/bundler/definition_spec.rb
index 23dfc19b78..4e93d5e01c 100644
--- a/spec/bundler/definition_spec.rb
+++ b/spec/bundler/definition_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/definition"
RSpec.describe Bundler::Definition do
diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb
index 5ee50031a6..5b811ff322 100644
--- a/spec/bundler/dsl_spec.rb
+++ b/spec/bundler/dsl_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Dsl do
before do
diff --git a/spec/bundler/endpoint_specification_spec.rb b/spec/bundler/endpoint_specification_spec.rb
index 0b8da840d2..c89fae32f1 100644
--- a/spec/bundler/endpoint_specification_spec.rb
+++ b/spec/bundler/endpoint_specification_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::EndpointSpecification do
let(:name) { "foo" }
diff --git a/spec/bundler/env_spec.rb b/spec/bundler/env_spec.rb
index a2afe5dc52..f2c534f596 100644
--- a/spec/bundler/env_spec.rb
+++ b/spec/bundler/env_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/settings"
RSpec.describe Bundler::Env do
diff --git a/spec/bundler/environment_preserver_spec.rb b/spec/bundler/environment_preserver_spec.rb
index fe4770f37c..937211d9ac 100644
--- a/spec/bundler/environment_preserver_spec.rb
+++ b/spec/bundler/environment_preserver_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::EnvironmentPreserver do
let(:preserver) { described_class.new(env, ["foo"]) }
diff --git a/spec/bundler/fetcher/base_spec.rb b/spec/bundler/fetcher/base_spec.rb
index 38b69429bc..df1245d44d 100644
--- a/spec/bundler/fetcher/base_spec.rb
+++ b/spec/bundler/fetcher/base_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Fetcher::Base do
let(:downloader) { double(:downloader) }
diff --git a/spec/bundler/fetcher/compact_index_spec.rb b/spec/bundler/fetcher/compact_index_spec.rb
index e653c1ea43..e624af73e1 100644
--- a/spec/bundler/fetcher/compact_index_spec.rb
+++ b/spec/bundler/fetcher/compact_index_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Fetcher::CompactIndex do
let(:downloader) { double(:downloader) }
diff --git a/spec/bundler/fetcher/dependency_spec.rb b/spec/bundler/fetcher/dependency_spec.rb
index 0e616f679b..081fdff34d 100644
--- a/spec/bundler/fetcher/dependency_spec.rb
+++ b/spec/bundler/fetcher/dependency_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Fetcher::Dependency do
let(:downloader) { double(:downloader) }
diff --git a/spec/bundler/fetcher/downloader_spec.rb b/spec/bundler/fetcher/downloader_spec.rb
index 4dcd94b1b2..c9b4fa662a 100644
--- a/spec/bundler/fetcher/downloader_spec.rb
+++ b/spec/bundler/fetcher/downloader_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Fetcher::Downloader do
let(:connection) { double(:connection) }
diff --git a/spec/bundler/fetcher/index_spec.rb b/spec/bundler/fetcher/index_spec.rb
index a3bba3444f..0cf0ae764e 100644
--- a/spec/bundler/fetcher/index_spec.rb
+++ b/spec/bundler/fetcher/index_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Fetcher::Index do
let(:downloader) { nil }
diff --git a/spec/bundler/fetcher_spec.rb b/spec/bundler/fetcher_spec.rb
index 2c1a613d6b..687b6dff76 100644
--- a/spec/bundler/fetcher_spec.rb
+++ b/spec/bundler/fetcher_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/fetcher"
RSpec.describe Bundler::Fetcher do
diff --git a/spec/bundler/friendly_errors_spec.rb b/spec/bundler/friendly_errors_spec.rb
index 19799d5495..d27a4fc2c4 100644
--- a/spec/bundler/friendly_errors_spec.rb
+++ b/spec/bundler/friendly_errors_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler"
require "bundler/friendly_errors"
require "cgi"
diff --git a/spec/bundler/gem_helper_spec.rb b/spec/bundler/gem_helper_spec.rb
index 3e48146b2e..1fa749638e 100644
--- a/spec/bundler/gem_helper_spec.rb
+++ b/spec/bundler/gem_helper_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "rake"
require "bundler/gem_helper"
diff --git a/spec/bundler/gem_version_promoter_spec.rb b/spec/bundler/gem_version_promoter_spec.rb
index fd52bdfedc..598f0bc92c 100644
--- a/spec/bundler/gem_version_promoter_spec.rb
+++ b/spec/bundler/gem_version_promoter_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::GemVersionPromoter do
context "conservative resolver" do
diff --git a/spec/bundler/index_spec.rb b/spec/bundler/index_spec.rb
index 09b09e08fa..0f3f6e4944 100644
--- a/spec/bundler/index_spec.rb
+++ b/spec/bundler/index_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Index do
let(:specs) { [] }
diff --git a/spec/bundler/installer/gem_installer_spec.rb b/spec/bundler/installer/gem_installer_spec.rb
index de5189eecd..754ec537e8 100644
--- a/spec/bundler/installer/gem_installer_spec.rb
+++ b/spec/bundler/installer/gem_installer_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/installer/gem_installer"
RSpec.describe Bundler::GemInstaller do
diff --git a/spec/bundler/installer/parallel_installer_spec.rb b/spec/bundler/installer/parallel_installer_spec.rb
index 7d2c441399..3b50223275 100644
--- a/spec/bundler/installer/parallel_installer_spec.rb
+++ b/spec/bundler/installer/parallel_installer_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/installer/parallel_installer"
RSpec.describe Bundler::ParallelInstaller do
diff --git a/spec/bundler/installer/spec_installation_spec.rb b/spec/bundler/installer/spec_installation_spec.rb
index 1e368ab7c5..811e69bfa1 100644
--- a/spec/bundler/installer/spec_installation_spec.rb
+++ b/spec/bundler/installer/spec_installation_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/installer/parallel_installer"
RSpec.describe Bundler::ParallelInstaller::SpecInstallation do
diff --git a/spec/bundler/lockfile_parser_spec.rb b/spec/bundler/lockfile_parser_spec.rb
index 17bb447194..37be8d9f66 100644
--- a/spec/bundler/lockfile_parser_spec.rb
+++ b/spec/bundler/lockfile_parser_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/lockfile_parser"
RSpec.describe Bundler::LockfileParser do
diff --git a/spec/bundler/mirror_spec.rb b/spec/bundler/mirror_spec.rb
index 9051a80465..f6fff37806 100644
--- a/spec/bundler/mirror_spec.rb
+++ b/spec/bundler/mirror_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/mirror"
RSpec.describe Bundler::Settings::Mirror do
diff --git a/spec/bundler/plugin/api/source_spec.rb b/spec/bundler/plugin/api/source_spec.rb
index 4dbb993b89..0118ff3d19 100644
--- a/spec/bundler/plugin/api/source_spec.rb
+++ b/spec/bundler/plugin/api/source_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Plugin::API::Source do
let(:uri) { "uri://to/test" }
diff --git a/spec/bundler/plugin/api_spec.rb b/spec/bundler/plugin/api_spec.rb
index c2c4150ab2..58fb908572 100644
--- a/spec/bundler/plugin/api_spec.rb
+++ b/spec/bundler/plugin/api_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Plugin::API do
context "plugin declarations" do
diff --git a/spec/bundler/plugin/dsl_spec.rb b/spec/bundler/plugin/dsl_spec.rb
index cd15b6ea9d..be23db3bba 100644
--- a/spec/bundler/plugin/dsl_spec.rb
+++ b/spec/bundler/plugin/dsl_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Plugin::DSL do
DSL = Bundler::Plugin::DSL
diff --git a/spec/bundler/plugin/index_spec.rb b/spec/bundler/plugin/index_spec.rb
index 24b9a408ff..163b563b2a 100644
--- a/spec/bundler/plugin/index_spec.rb
+++ b/spec/bundler/plugin/index_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Plugin::Index do
Index = Bundler::Plugin::Index
diff --git a/spec/bundler/plugin/installer_spec.rb b/spec/bundler/plugin/installer_spec.rb
index e8d5941e33..ece34a784c 100644
--- a/spec/bundler/plugin/installer_spec.rb
+++ b/spec/bundler/plugin/installer_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Plugin::Installer do
subject(:installer) { Bundler::Plugin::Installer.new }
diff --git a/spec/bundler/plugin/source_list_spec.rb b/spec/bundler/plugin/source_list_spec.rb
index 86cc4ac4ed..64a1233dd1 100644
--- a/spec/bundler/plugin/source_list_spec.rb
+++ b/spec/bundler/plugin/source_list_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Plugin::SourceList do
SourceList = Bundler::Plugin::SourceList
diff --git a/spec/bundler/plugin_spec.rb b/spec/bundler/plugin_spec.rb
index 5bbb7384c8..9796b580a3 100644
--- a/spec/bundler/plugin_spec.rb
+++ b/spec/bundler/plugin_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Plugin do
Plugin = Bundler::Plugin
diff --git a/spec/bundler/psyched_yaml_spec.rb b/spec/bundler/psyched_yaml_spec.rb
index 18e40d6b5a..5d92e47aab 100644
--- a/spec/bundler/psyched_yaml_spec.rb
+++ b/spec/bundler/psyched_yaml_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/psyched_yaml"
RSpec.describe "Bundler::YamlLibrarySyntaxError" do
diff --git a/spec/bundler/remote_specification_spec.rb b/spec/bundler/remote_specification_spec.rb
index 644814c563..8115e026d8 100644
--- a/spec/bundler/remote_specification_spec.rb
+++ b/spec/bundler/remote_specification_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::RemoteSpecification do
let(:name) { "foo" }
diff --git a/spec/bundler/retry_spec.rb b/spec/bundler/retry_spec.rb
index 525f05d327..b893580d72 100644
--- a/spec/bundler/retry_spec.rb
+++ b/spec/bundler/retry_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Retry do
it "return successful result if no errors" do
diff --git a/spec/bundler/ruby_dsl_spec.rb b/spec/bundler/ruby_dsl_spec.rb
index 3e0ec9d7f0..a23ccd39f9 100644
--- a/spec/bundler/ruby_dsl_spec.rb
+++ b/spec/bundler/ruby_dsl_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/ruby_dsl"
RSpec.describe Bundler::RubyDsl do
diff --git a/spec/bundler/ruby_version_spec.rb b/spec/bundler/ruby_version_spec.rb
index f77ec606fc..9362d0727e 100644
--- a/spec/bundler/ruby_version_spec.rb
+++ b/spec/bundler/ruby_version_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/ruby_version"
RSpec.describe "Bundler::RubyVersion and its subclasses" do
diff --git a/spec/bundler/rubygems_integration_spec.rb b/spec/bundler/rubygems_integration_spec.rb
index b8297fb550..4f8ee38d15 100644
--- a/spec/bundler/rubygems_integration_spec.rb
+++ b/spec/bundler/rubygems_integration_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::RubygemsIntegration do
it "uses the same chdir lock as rubygems", :rubygems => "2.1" do
diff --git a/spec/bundler/settings_spec.rb b/spec/bundler/settings_spec.rb
index a93c41b7d2..1c66cd73af 100644
--- a/spec/bundler/settings_spec.rb
+++ b/spec/bundler/settings_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/settings"
RSpec.describe Bundler::Settings do
diff --git a/spec/bundler/shared_helpers_spec.rb b/spec/bundler/shared_helpers_spec.rb
index 8bd7215666..8586079974 100644
--- a/spec/bundler/shared_helpers_spec.rb
+++ b/spec/bundler/shared_helpers_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::SharedHelpers do
let(:ext_lock_double) { double(:ext_lock) }
diff --git a/spec/bundler/source/git/git_proxy_spec.rb b/spec/bundler/source/git/git_proxy_spec.rb
index 34fe21e9fb..e7187082ea 100644
--- a/spec/bundler/source/git/git_proxy_spec.rb
+++ b/spec/bundler/source/git/git_proxy_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Source::Git::GitProxy do
let(:uri) { "https://github.com/bundler/bundler.git" }
diff --git a/spec/bundler/source/rubygems/remote_spec.rb b/spec/bundler/source/rubygems/remote_spec.rb
index 54394fc0ca..19e466196f 100644
--- a/spec/bundler/source/rubygems/remote_spec.rb
+++ b/spec/bundler/source/rubygems/remote_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/source/rubygems/remote"
RSpec.describe Bundler::Source::Rubygems::Remote do
diff --git a/spec/bundler/source/rubygems_spec.rb b/spec/bundler/source/rubygems_spec.rb
index b8f9f09c20..7c457a7265 100644
--- a/spec/bundler/source/rubygems_spec.rb
+++ b/spec/bundler/source/rubygems_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Source::Rubygems do
before do
diff --git a/spec/bundler/source_list_spec.rb b/spec/bundler/source_list_spec.rb
index 6a23c8bcbf..fb703806e1 100644
--- a/spec/bundler/source_list_spec.rb
+++ b/spec/bundler/source_list_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::SourceList do
before do
diff --git a/spec/bundler/source_spec.rb b/spec/bundler/source_spec.rb
index 08d1698fcd..9ef8e7e50f 100644
--- a/spec/bundler/source_spec.rb
+++ b/spec/bundler/source_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::Source do
class ExampleSource < Bundler::Source
diff --git a/spec/bundler/spec_set_spec.rb b/spec/bundler/spec_set_spec.rb
index fa136a624a..6fedd38b50 100644
--- a/spec/bundler/spec_set_spec.rb
+++ b/spec/bundler/spec_set_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::SpecSet do
let(:specs) do
diff --git a/spec/bundler/ssl_certs/certificate_manager_spec.rb b/spec/bundler/ssl_certs/certificate_manager_spec.rb
index 51552f7234..697bf7757b 100644
--- a/spec/bundler/ssl_certs/certificate_manager_spec.rb
+++ b/spec/bundler/ssl_certs/certificate_manager_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/ssl_certs/certificate_manager"
RSpec.describe Bundler::SSLCerts::CertificateManager do
diff --git a/spec/bundler/ui_spec.rb b/spec/bundler/ui_spec.rb
index fc76eb1ee7..6ef8729277 100644
--- a/spec/bundler/ui_spec.rb
+++ b/spec/bundler/ui_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::UI do
describe Bundler::UI::Silent do
diff --git a/spec/bundler/uri_credentials_filter_spec.rb b/spec/bundler/uri_credentials_filter_spec.rb
index 1dd01b4be0..fe52d16306 100644
--- a/spec/bundler/uri_credentials_filter_spec.rb
+++ b/spec/bundler/uri_credentials_filter_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe Bundler::URICredentialsFilter do
subject { described_class }
diff --git a/spec/bundler/version_ranges_spec.rb b/spec/bundler/version_ranges_spec.rb
index f746aa88ad..a69ab2dc0e 100644
--- a/spec/bundler/version_ranges_spec.rb
+++ b/spec/bundler/version_ranges_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/version_ranges"
RSpec.describe Bundler::VersionRanges do
diff --git a/spec/bundler/worker_spec.rb b/spec/bundler/worker_spec.rb
index fbfe6ddab3..9c73faeba9 100644
--- a/spec/bundler/worker_spec.rb
+++ b/spec/bundler/worker_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/worker"
RSpec.describe Bundler::Worker do
diff --git a/spec/bundler/yaml_serializer_spec.rb b/spec/bundler/yaml_serializer_spec.rb
index 361159e0da..d52fc027bc 100644
--- a/spec/bundler/yaml_serializer_spec.rb
+++ b/spec/bundler/yaml_serializer_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/yaml_serializer"
RSpec.describe Bundler::YAMLSerializer do
diff --git a/spec/cache/cache_path_spec.rb b/spec/cache/cache_path_spec.rb
index c9ec4218ae..69d3809964 100644
--- a/spec/cache/cache_path_spec.rb
+++ b/spec/cache/cache_path_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle package" do
before do
diff --git a/spec/cache/gems_spec.rb b/spec/cache/gems_spec.rb
index 7828c87fec..6283299b57 100644
--- a/spec/cache/gems_spec.rb
+++ b/spec/cache/gems_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle cache" do
describe "when there are only gemsources" do
diff --git a/spec/cache/git_spec.rb b/spec/cache/git_spec.rb
index 4bd0aa41b5..59eaa51679 100644
--- a/spec/cache/git_spec.rb
+++ b/spec/cache/git_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "git base name" do
it "base_name should strip private repo uris" do
diff --git a/spec/cache/path_spec.rb b/spec/cache/path_spec.rb
index ab54e39663..3bf67204ce 100644
--- a/spec/cache/path_spec.rb
+++ b/spec/cache/path_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
%w[cache package].each do |cmd|
RSpec.describe "bundle #{cmd} with path" do
diff --git a/spec/cache/platform_spec.rb b/spec/cache/platform_spec.rb
index ed80c949aa..cb2b610436 100644
--- a/spec/cache/platform_spec.rb
+++ b/spec/cache/platform_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle cache with multiple platforms" do
before :each do
diff --git a/spec/commands/add_spec.rb b/spec/commands/add_spec.rb
index 4931402c33..36e696da0b 100644
--- a/spec/commands/add_spec.rb
+++ b/spec/commands/add_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle add" do
before :each do
diff --git a/spec/commands/binstubs_spec.rb b/spec/commands/binstubs_spec.rb
index 0aeb17d529..f3ca2301a7 100644
--- a/spec/commands/binstubs_spec.rb
+++ b/spec/commands/binstubs_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle binstubs <gem>" do
context "when the gem exists in the lockfile" do
diff --git a/spec/commands/check_spec.rb b/spec/commands/check_spec.rb
index 532be07c3f..23a7ea137a 100644
--- a/spec/commands/check_spec.rb
+++ b/spec/commands/check_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle check" do
it "returns success when the Gemfile is satisfied" do
diff --git a/spec/commands/clean_spec.rb b/spec/commands/clean_spec.rb
index 8fd4b6fbe8..9323e2d22e 100644
--- a/spec/commands/clean_spec.rb
+++ b/spec/commands/clean_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle clean" do
def should_have_gems(*gems)
diff --git a/spec/commands/config_spec.rb b/spec/commands/config_spec.rb
index 4f4593fc24..4b9b27e0d5 100644
--- a/spec/commands/config_spec.rb
+++ b/spec/commands/config_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe ".bundle/config" do
before :each do
diff --git a/spec/commands/console_spec.rb b/spec/commands/console_spec.rb
index de14b6db5f..a854e6228d 100644
--- a/spec/commands/console_spec.rb
+++ b/spec/commands/console_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle console" do
before :each do
diff --git a/spec/commands/doctor_spec.rb b/spec/commands/doctor_spec.rb
index 7c6e48ce19..c785a64923 100644
--- a/spec/commands/doctor_spec.rb
+++ b/spec/commands/doctor_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "stringio"
require "bundler/cli"
require "bundler/cli/doctor"
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 26a3e09b85..7b0da1694c 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle exec" do
let(:system_gems_to_install) { %w[rack-1.0.0 rack-0.9.1] }
diff --git a/spec/commands/help_spec.rb b/spec/commands/help_spec.rb
index 1ad8b0d361..56b1b6f722 100644
--- a/spec/commands/help_spec.rb
+++ b/spec/commands/help_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle help" do
# RubyGems 1.4+ no longer load gem plugins so this test is no longer needed
diff --git a/spec/commands/info_spec.rb b/spec/commands/info_spec.rb
index b37de765e4..a08965ec0e 100644
--- a/spec/commands/info_spec.rb
+++ b/spec/commands/info_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle info" do
context "info from specific gem in gemfile" do
diff --git a/spec/commands/init_spec.rb b/spec/commands/init_spec.rb
index 03a46a8bfa..fbe03a78fa 100644
--- a/spec/commands/init_spec.rb
+++ b/spec/commands/init_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle init" do
it "generates a Gemfile" do
diff --git a/spec/commands/inject_spec.rb b/spec/commands/inject_spec.rb
index dd0f1348cc..78f6565d99 100644
--- a/spec/commands/inject_spec.rb
+++ b/spec/commands/inject_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle inject" do
before :each do
diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb
index 49eee01910..4ca8330d02 100644
--- a/spec/commands/install_spec.rb
+++ b/spec/commands/install_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with gem sources" do
describe "the simple case" do
diff --git a/spec/commands/issue_spec.rb b/spec/commands/issue_spec.rb
index 056ef0f300..04c575130e 100644
--- a/spec/commands/issue_spec.rb
+++ b/spec/commands/issue_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle issue" do
it "exits with a message" do
diff --git a/spec/commands/licenses_spec.rb b/spec/commands/licenses_spec.rb
index 0ee1a46945..144931fb27 100644
--- a/spec/commands/licenses_spec.rb
+++ b/spec/commands/licenses_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle licenses" do
before :each do
diff --git a/spec/commands/lock_spec.rb b/spec/commands/lock_spec.rb
index d36bf1a449..a0b8abefae 100644
--- a/spec/commands/lock_spec.rb
+++ b/spec/commands/lock_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle lock" do
def strip_lockfile(lockfile)
diff --git a/spec/commands/newgem_spec.rb b/spec/commands/newgem_spec.rb
index c335bd4375..2488196abb 100644
--- a/spec/commands/newgem_spec.rb
+++ b/spec/commands/newgem_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle gem" do
def reset!
diff --git a/spec/commands/open_spec.rb b/spec/commands/open_spec.rb
index 6872e859d2..5cab846fb5 100644
--- a/spec/commands/open_spec.rb
+++ b/spec/commands/open_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle open" do
before :each do
diff --git a/spec/commands/outdated_spec.rb b/spec/commands/outdated_spec.rb
index eb22b3d7c5..3ef955fe23 100644
--- a/spec/commands/outdated_spec.rb
+++ b/spec/commands/outdated_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle outdated" do
before :each do
diff --git a/spec/commands/package_spec.rb b/spec/commands/package_spec.rb
index 86c09db3ca..5ecc215b59 100644
--- a/spec/commands/package_spec.rb
+++ b/spec/commands/package_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle package" do
context "with --gemfile" do
diff --git a/spec/commands/pristine_spec.rb b/spec/commands/pristine_spec.rb
index b475398c8c..cc01aabbf7 100644
--- a/spec/commands/pristine_spec.rb
+++ b/spec/commands/pristine_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "fileutils"
RSpec.describe "bundle pristine" do
diff --git a/spec/commands/show_spec.rb b/spec/commands/show_spec.rb
index 45af035959..56d8b50a10 100644
--- a/spec/commands/show_spec.rb
+++ b/spec/commands/show_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle show" do
context "with a standard Gemfile" do
diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb
index bed8720d4a..b278036a12 100644
--- a/spec/commands/update_spec.rb
+++ b/spec/commands/update_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle update" do
before :each do
diff --git a/spec/commands/viz_spec.rb b/spec/commands/viz_spec.rb
index 123e7bef62..9ab8215aa1 100644
--- a/spec/commands/viz_spec.rb
+++ b/spec/commands/viz_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle viz", :ruby => "1.9.3", :if => Bundler.which("dot") do
let(:graphviz_lib) do
diff --git a/spec/install/allow_offline_install_spec.rb b/spec/install/allow_offline_install_spec.rb
index 1bca055c9f..6a5ee73bed 100644
--- a/spec/install/allow_offline_install_spec.rb
+++ b/spec/install/allow_offline_install_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with :allow_offline_install" do
before do
diff --git a/spec/install/binstubs_spec.rb b/spec/install/binstubs_spec.rb
index a1a9ab167d..12d5a99d4e 100644
--- a/spec/install/binstubs_spec.rb
+++ b/spec/install/binstubs_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
describe "when system_bindir is set" do
diff --git a/spec/install/bundler_spec.rb b/spec/install/bundler_spec.rb
index c1ce57e60e..5035937ea1 100644
--- a/spec/install/bundler_spec.rb
+++ b/spec/install/bundler_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
describe "with bundler dependencies" do
diff --git a/spec/install/deploy_spec.rb b/spec/install/deploy_spec.rb
index bcbd57bc4f..c6747764b1 100644
--- a/spec/install/deploy_spec.rb
+++ b/spec/install/deploy_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "install with --deployment or --frozen" do
before do
diff --git a/spec/install/failure_spec.rb b/spec/install/failure_spec.rb
index 738b2cf1bd..c4568673f8 100644
--- a/spec/install/failure_spec.rb
+++ b/spec/install/failure_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
context "installing a gem fails" do
diff --git a/spec/install/force_spec.rb b/spec/install/force_spec.rb
index 6d852b3bf1..2ac7f57399 100644
--- a/spec/install/force_spec.rb
+++ b/spec/install/force_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
describe "with --force" do
diff --git a/spec/install/gemfile/eval_gemfile_spec.rb b/spec/install/gemfile/eval_gemfile_spec.rb
index 4f5a109e32..f3f9cb6444 100644
--- a/spec/install/gemfile/eval_gemfile_spec.rb
+++ b/spec/install/gemfile/eval_gemfile_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with gemfile that uses eval_gemfile" do
before do
diff --git a/spec/install/gemfile/gemspec_spec.rb b/spec/install/gemfile/gemspec_spec.rb
index 8dcf14c0a5..5089914959 100644
--- a/spec/install/gemfile/gemspec_spec.rb
+++ b/spec/install/gemfile/gemspec_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install from an existing gemspec" do
before(:each) do
diff --git a/spec/install/gemfile/git_spec.rb b/spec/install/gemfile/git_spec.rb
index 9b74da8b52..31abb4de72 100644
--- a/spec/install/gemfile/git_spec.rb
+++ b/spec/install/gemfile/git_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with git sources" do
describe "when floating on master" do
diff --git a/spec/install/gemfile/groups_spec.rb b/spec/install/gemfile/groups_spec.rb
index a3a5eeefdf..a6b81d0911 100644
--- a/spec/install/gemfile/groups_spec.rb
+++ b/spec/install/gemfile/groups_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with groups" do
describe "installing with no options" do
diff --git a/spec/install/gemfile/path_spec.rb b/spec/install/gemfile/path_spec.rb
index a1c41aebbb..49dda37aee 100644
--- a/spec/install/gemfile/path_spec.rb
+++ b/spec/install/gemfile/path_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with explicit source paths" do
it "fetches gems" do
diff --git a/spec/install/gemfile/platform_spec.rb b/spec/install/gemfile/platform_spec.rb
index c6eaec7ca6..156fa5e7d2 100644
--- a/spec/install/gemfile/platform_spec.rb
+++ b/spec/install/gemfile/platform_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install across platforms" do
it "maintains the same lockfile if all gems are compatible across platforms" do
diff --git a/spec/install/gemfile/ruby_spec.rb b/spec/install/gemfile/ruby_spec.rb
index b9d9683758..24fe021fa3 100644
--- a/spec/install/gemfile/ruby_spec.rb
+++ b/spec/install/gemfile/ruby_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "ruby requirement" do
def locked_ruby_version
diff --git a/spec/install/gemfile/sources_spec.rb b/spec/install/gemfile/sources_spec.rb
index c5375b4abf..b7f8b3d99e 100644
--- a/spec/install/gemfile/sources_spec.rb
+++ b/spec/install/gemfile/sources_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with gems on multiple sources" do
# repo1 is built automatically before all of the specs run
diff --git a/spec/install/gemfile/specific_platform_spec.rb b/spec/install/gemfile/specific_platform_spec.rb
index fd02fdd5de..9c725416d5 100644
--- a/spec/install/gemfile/specific_platform_spec.rb
+++ b/spec/install/gemfile/specific_platform_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with specific_platform enabled" do
before do
diff --git a/spec/install/gemfile_spec.rb b/spec/install/gemfile_spec.rb
index bc49053081..9262dcc92d 100644
--- a/spec/install/gemfile_spec.rb
+++ b/spec/install/gemfile_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
context "with duplicated gems" do
diff --git a/spec/install/gems/compact_index_spec.rb b/spec/install/gems/compact_index_spec.rb
index e406b19218..6ff1180a37 100644
--- a/spec/install/gems/compact_index_spec.rb
+++ b/spec/install/gems/compact_index_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "compact index api" do
let(:source_hostname) { "localgemserver.test" }
diff --git a/spec/install/gems/dependency_api_spec.rb b/spec/install/gems/dependency_api_spec.rb
index ffbea364dd..ffe572d208 100644
--- a/spec/install/gems/dependency_api_spec.rb
+++ b/spec/install/gems/dependency_api_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "gemcutter's dependency API" do
let(:source_hostname) { "localgemserver.test" }
diff --git a/spec/install/gems/env_spec.rb b/spec/install/gems/env_spec.rb
index 9b1d8e5424..0dccbbfd24 100644
--- a/spec/install/gems/env_spec.rb
+++ b/spec/install/gems/env_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with ENV conditionals" do
describe "when just setting an ENV key as a string" do
diff --git a/spec/install/gems/flex_spec.rb b/spec/install/gems/flex_spec.rb
index 2c2d3c16a1..e80385980e 100644
--- a/spec/install/gems/flex_spec.rb
+++ b/spec/install/gems/flex_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle flex_install" do
it "installs the gems as expected" do
diff --git a/spec/install/gems/mirror_spec.rb b/spec/install/gems/mirror_spec.rb
index 798156fb12..a8516a28c3 100644
--- a/spec/install/gems/mirror_spec.rb
+++ b/spec/install/gems/mirror_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with a mirror configured" do
describe "when the mirror does not match the gem source" do
diff --git a/spec/install/gems/native_extensions_spec.rb b/spec/install/gems/native_extensions_spec.rb
index 7531768b5f..f27e0b10d5 100644
--- a/spec/install/gems/native_extensions_spec.rb
+++ b/spec/install/gems/native_extensions_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "installing a gem with native extensions" do
it "installs" do
diff --git a/spec/install/gems/post_install_spec.rb b/spec/install/gems/post_install_spec.rb
index c3ea3e7c51..c6e348fb65 100644
--- a/spec/install/gems/post_install_spec.rb
+++ b/spec/install/gems/post_install_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
context "with gem sources" do
diff --git a/spec/install/gems/resolving_spec.rb b/spec/install/gems/resolving_spec.rb
index c227993448..1ba54f999e 100644
--- a/spec/install/gems/resolving_spec.rb
+++ b/spec/install/gems/resolving_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with install-time dependencies" do
it "installs gems with implicit rake dependencies" do
diff --git a/spec/install/gems/standalone_spec.rb b/spec/install/gems/standalone_spec.rb
index 496844ae14..58fac1213a 100644
--- a/spec/install/gems/standalone_spec.rb
+++ b/spec/install/gems/standalone_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.shared_examples "bundle install --standalone" do
shared_examples "common functionality" do
diff --git a/spec/install/gems/sudo_spec.rb b/spec/install/gems/sudo_spec.rb
index c2b0c18d33..f2dce52c78 100644
--- a/spec/install/gems/sudo_spec.rb
+++ b/spec/install/gems/sudo_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "when using sudo", :sudo => true do
describe "and BUNDLE_PATH is writable" do
diff --git a/spec/install/gems/win32_spec.rb b/spec/install/gems/win32_spec.rb
index cdad9a8821..ad758b94fa 100644
--- a/spec/install/gems/win32_spec.rb
+++ b/spec/install/gems/win32_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install with win32-generated lockfile" do
it "should read lockfile" do
diff --git a/spec/install/gemspecs_spec.rb b/spec/install/gemspecs_spec.rb
index 97eaf149c1..a404a556b7 100644
--- a/spec/install/gemspecs_spec.rb
+++ b/spec/install/gemspecs_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
describe "when a gem has a YAML gemspec" do
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb
index 04f2380b45..cd3b6e6a88 100644
--- a/spec/install/git_spec.rb
+++ b/spec/install/git_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
context "git sources" do
diff --git a/spec/install/path_spec.rb b/spec/install/path_spec.rb
index ad6071d29f..206b59c26e 100644
--- a/spec/install/path_spec.rb
+++ b/spec/install/path_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
describe "with --path" do
diff --git a/spec/install/post_bundle_message_spec.rb b/spec/install/post_bundle_message_spec.rb
index 4453e4190f..8c2a2334c6 100644
--- a/spec/install/post_bundle_message_spec.rb
+++ b/spec/install/post_bundle_message_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "post bundle message" do
before :each do
diff --git a/spec/install/prereleases_spec.rb b/spec/install/prereleases_spec.rb
index 6c32094d90..7af8c3b304 100644
--- a/spec/install/prereleases_spec.rb
+++ b/spec/install/prereleases_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle install" do
describe "when prerelease gems are available" do
diff --git a/spec/install/security_policy_spec.rb b/spec/install/security_policy_spec.rb
index 7827e6c3c1..f0a488c6b3 100644
--- a/spec/install/security_policy_spec.rb
+++ b/spec/install/security_policy_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "rubygems/security"
# unfortunately, testing signed gems with a provided CA is extremely difficult
diff --git a/spec/install/yanked_spec.rb b/spec/install/yanked_spec.rb
index d42978ce4c..65783e294b 100644
--- a/spec/install/yanked_spec.rb
+++ b/spec/install/yanked_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.context "when installing a bundle that includes yanked gems" do
before(:each) do
diff --git a/spec/lock/git_spec.rb b/spec/lock/git_spec.rb
index b36f61338d..4179a0218a 100644
--- a/spec/lock/git_spec.rb
+++ b/spec/lock/git_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle lock with git gems" do
before :each do
diff --git a/spec/lock/lockfile_spec.rb b/spec/lock/lockfile_spec.rb
index 968c969a55..113e0cdf64 100644
--- a/spec/lock/lockfile_spec.rb
+++ b/spec/lock/lockfile_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "the lockfile format" do
include Bundler::GemHelpers
diff --git a/spec/other/bundle_ruby_spec.rb b/spec/other/bundle_ruby_spec.rb
index 09fa2c223b..e65bbc5e42 100644
--- a/spec/other/bundle_ruby_spec.rb
+++ b/spec/other/bundle_ruby_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle_ruby" do
context "without patchlevel" do
diff --git a/spec/other/cli_dispatch_spec.rb b/spec/other/cli_dispatch_spec.rb
index 8b34a457ef..1983ab474e 100644
--- a/spec/other/cli_dispatch_spec.rb
+++ b/spec/other/cli_dispatch_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle command names" do
it "work when given fully" do
diff --git a/spec/other/ext_spec.rb b/spec/other/ext_spec.rb
index 2d6ab941b8..3f6f8b4928 100644
--- a/spec/other/ext_spec.rb
+++ b/spec/other/ext_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "Gem::Specification#match_platform" do
it "does not match platforms other than the gem platform" do
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 465d769538..f7a632bdcf 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "major deprecations" do
let(:warnings) { out } # change to err in 2.0
diff --git a/spec/other/platform_spec.rb b/spec/other/platform_spec.rb
index 6adbcef111..3160a5f7e5 100644
--- a/spec/other/platform_spec.rb
+++ b/spec/other/platform_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle platform" do
context "without flags" do
diff --git a/spec/other/ssl_cert_spec.rb b/spec/other/ssl_cert_spec.rb
index 9cf9a1c8d1..82d2b76d5b 100644
--- a/spec/other/ssl_cert_spec.rb
+++ b/spec/other/ssl_cert_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "bundler/ssl_certs/certificate_manager"
RSpec.describe "SSL Certificates", :rubygems_master do
diff --git a/spec/other/trampoline_spec.rb b/spec/other/trampoline_spec.rb
index 8a67d4bc56..0ac9ee06a8 100644
--- a/spec/other/trampoline_spec.rb
+++ b/spec/other/trampoline_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundler version trampolining" do
before do
diff --git a/spec/plugins/command_spec.rb b/spec/plugins/command_spec.rb
index 6ad782b758..8275351d19 100644
--- a/spec/plugins/command_spec.rb
+++ b/spec/plugins/command_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "command plugins" do
before do
diff --git a/spec/plugins/hook_spec.rb b/spec/plugins/hook_spec.rb
index 9850d850ac..8bdf61a8ab 100644
--- a/spec/plugins/hook_spec.rb
+++ b/spec/plugins/hook_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "hook plugins" do
before do
diff --git a/spec/plugins/install_spec.rb b/spec/plugins/install_spec.rb
index 6533614c81..9304d78062 100644
--- a/spec/plugins/install_spec.rb
+++ b/spec/plugins/install_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundler plugin install" do
before do
diff --git a/spec/plugins/source/example_spec.rb b/spec/plugins/source/example_spec.rb
index 2ae34caf73..d898c1f95c 100644
--- a/spec/plugins/source/example_spec.rb
+++ b/spec/plugins/source/example_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "real source plugins" do
context "with a minimal source plugin" do
diff --git a/spec/plugins/source_spec.rb b/spec/plugins/source_spec.rb
index 0448bc409a..543e90eb60 100644
--- a/spec/plugins/source_spec.rb
+++ b/spec/plugins/source_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundler source plugin" do
describe "plugins dsl eval for #source with :type option" do
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb
index 51cdc2a1f7..5f55f123e2 100644
--- a/spec/quality_spec.rb
+++ b/spec/quality_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
if defined?(Encoding) && Encoding.default_external.name != "UTF-8"
# Poor man's ruby -E UTF-8, since it works on 1.8.7
diff --git a/spec/realworld/dependency_api_spec.rb b/spec/realworld/dependency_api_spec.rb
index 468fa3644c..f57a9be65e 100644
--- a/spec/realworld/dependency_api_spec.rb
+++ b/spec/realworld/dependency_api_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "gemcutter's dependency API", :realworld => true do
context "when Gemcutter API takes too long to respond" do
diff --git a/spec/realworld/edgecases_spec.rb b/spec/realworld/edgecases_spec.rb
index 302fd57cf0..6de20798da 100644
--- a/spec/realworld/edgecases_spec.rb
+++ b/spec/realworld/edgecases_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "real world edgecases", :realworld => true, :sometimes => true do
def rubygems_version(name, requirement)
diff --git a/spec/realworld/gemfile_source_header_spec.rb b/spec/realworld/gemfile_source_header_spec.rb
index ba888d43bd..4cb04a81a6 100644
--- a/spec/realworld/gemfile_source_header_spec.rb
+++ b/spec/realworld/gemfile_source_header_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "thread"
RSpec.describe "fetching dependencies with a mirrored source", :realworld => true, :rubygems => ">= 2.0" do
diff --git a/spec/realworld/mirror_probe_spec.rb b/spec/realworld/mirror_probe_spec.rb
index 93dca0c173..df49cd53ee 100644
--- a/spec/realworld/mirror_probe_spec.rb
+++ b/spec/realworld/mirror_probe_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
require "thread"
RSpec.describe "fetching dependencies with a not available mirror", :realworld => true do
diff --git a/spec/realworld/parallel_spec.rb b/spec/realworld/parallel_spec.rb
index 6950bead19..b8233206e8 100644
--- a/spec/realworld/parallel_spec.rb
+++ b/spec/realworld/parallel_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "parallel", :realworld => true, :sometimes => true do
it "installs" do
diff --git a/spec/resolver/basic_spec.rb b/spec/resolver/basic_spec.rb
index dab79b74d3..8d9aef2891 100644
--- a/spec/resolver/basic_spec.rb
+++ b/spec/resolver/basic_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "Resolving" do
before :each do
diff --git a/spec/resolver/platform_spec.rb b/spec/resolver/platform_spec.rb
index 2028ba26dc..fee0cf1f1c 100644
--- a/spec/resolver/platform_spec.rb
+++ b/spec/resolver/platform_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "Resolving platform craziness" do
describe "with cross-platform gems" do
diff --git a/spec/runtime/executable_spec.rb b/spec/runtime/executable_spec.rb
index ff27d0b415..5b5dbcdf05 100644
--- a/spec/runtime/executable_spec.rb
+++ b/spec/runtime/executable_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "Running bin/* commands" do
before :each do
diff --git a/spec/runtime/gem_tasks_spec.rb b/spec/runtime/gem_tasks_spec.rb
index 422ec45470..884039e425 100644
--- a/spec/runtime/gem_tasks_spec.rb
+++ b/spec/runtime/gem_tasks_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "require 'bundler/gem_tasks'" do
before :each do
diff --git a/spec/runtime/inline_spec.rb b/spec/runtime/inline_spec.rb
index 022b123dc3..3ebcfd8852 100644
--- a/spec/runtime/inline_spec.rb
+++ b/spec/runtime/inline_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundler/inline#gemfile" do
def script(code, options = {})
diff --git a/spec/runtime/load_spec.rb b/spec/runtime/load_spec.rb
index d0e308ed3e..8f38e4fd04 100644
--- a/spec/runtime/load_spec.rb
+++ b/spec/runtime/load_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "Bundler.load" do
before :each do
diff --git a/spec/runtime/platform_spec.rb b/spec/runtime/platform_spec.rb
index b84ee90b1f..5160d602e0 100644
--- a/spec/runtime/platform_spec.rb
+++ b/spec/runtime/platform_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "Bundler.setup with multi platform stuff" do
it "raises a friendly error when gems are missing locally" do
diff --git a/spec/runtime/require_spec.rb b/spec/runtime/require_spec.rb
index 2eedb79ce3..749f2a4e33 100644
--- a/spec/runtime/require_spec.rb
+++ b/spec/runtime/require_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "Bundler.require" do
before :each do
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index bd596b61ca..c94147dff7 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "Bundler.setup" do
describe "with no arguments" do
diff --git a/spec/runtime/with_clean_env_spec.rb b/spec/runtime/with_clean_env_spec.rb
index b351e86c8b..4903891e4b 100644
--- a/spec/runtime/with_clean_env_spec.rb
+++ b/spec/runtime/with_clean_env_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "Bundler.with_env helpers" do
describe "Bundler.original_env" do
diff --git a/spec/update/gems/post_install_spec.rb b/spec/update/gems/post_install_spec.rb
index 5a4fe7f321..b9cbead53f 100644
--- a/spec/update/gems/post_install_spec.rb
+++ b/spec/update/gems/post_install_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle update" do
let(:config) {}
diff --git a/spec/update/git_spec.rb b/spec/update/git_spec.rb
index 021c8c942b..fedd1b6e7e 100644
--- a/spec/update/git_spec.rb
+++ b/spec/update/git_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "bundle update" do
describe "git sources" do
diff --git a/spec/update/path_spec.rb b/spec/update/path_spec.rb
index 5ac4f7b1fe..38c125e04b 100644
--- a/spec/update/path_spec.rb
+++ b/spec/update/path_spec.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require "spec_helper"
RSpec.describe "path sources" do
describe "bundle update --source" do