diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-01-31 11:29:09 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-31 22:22:06 -0600 |
commit | 7ae072865e3fc23d9844322dde6ad0f6906e3f2c (patch) | |
tree | 2133b2f27e243af2d8beda66f19b2f1086685a0e /spec/bundler | |
parent | b1afbe3a2ff7623c9a0e8504bc85af4bd8156059 (diff) | |
download | bundler-7ae072865e3fc23d9844322dde6ad0f6906e3f2c.tar.gz |
Compatibility with frozen string literals
Diffstat (limited to 'spec/bundler')
27 files changed, 30 insertions, 3 deletions
diff --git a/spec/bundler/bundler_spec.rb b/spec/bundler/bundler_spec.rb index 923217da15..9d4353f718 100644 --- a/spec/bundler/bundler_spec.rb +++ b/spec/bundler/bundler_spec.rb @@ -1,4 +1,5 @@ # encoding: utf-8 +# frozen_string_literal: true require "spec_helper" require "bundler" diff --git a/spec/bundler/cli_spec.rb b/spec/bundler/cli_spec.rb index a2f87e45fa..b48af7c81a 100644 --- a/spec/bundler/cli_spec.rb +++ b/spec/bundler/cli_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/cli" diff --git a/spec/bundler/definition_spec.rb b/spec/bundler/definition_spec.rb index 8dc4bd28f0..443a2c9703 100644 --- a/spec/bundler/definition_spec.rb +++ b/spec/bundler/definition_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/definition" diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb index 9553c8fd43..77d663d754 100644 --- a/spec/bundler/dsl_spec.rb +++ b/spec/bundler/dsl_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::Dsl do diff --git a/spec/bundler/endpoint_specification_spec.rb b/spec/bundler/endpoint_specification_spec.rb index 0340c36261..fccf1842fc 100644 --- a/spec/bundler/endpoint_specification_spec.rb +++ b/spec/bundler/endpoint_specification_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::EndpointSpecification do diff --git a/spec/bundler/env_spec.rb b/spec/bundler/env_spec.rb index 1c38ca87df..305fcce351 100644 --- a/spec/bundler/env_spec.rb +++ b/spec/bundler/env_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/settings" diff --git a/spec/bundler/fetcher/base_spec.rb b/spec/bundler/fetcher/base_spec.rb index 4ca47e4723..5a8c7647b9 100644 --- a/spec/bundler/fetcher/base_spec.rb +++ b/spec/bundler/fetcher/base_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::Fetcher::Base do diff --git a/spec/bundler/fetcher/dependency_spec.rb b/spec/bundler/fetcher/dependency_spec.rb index 43c496507e..fd0d5ed9d3 100644 --- a/spec/bundler/fetcher/dependency_spec.rb +++ b/spec/bundler/fetcher/dependency_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::Fetcher::Dependency do diff --git a/spec/bundler/fetcher/downloader_spec.rb b/spec/bundler/fetcher/downloader_spec.rb index eade22f441..ebfaf90534 100644 --- a/spec/bundler/fetcher/downloader_spec.rb +++ b/spec/bundler/fetcher/downloader_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::Fetcher::Downloader do diff --git a/spec/bundler/fetcher/index_spec.rb b/spec/bundler/fetcher/index_spec.rb index 52acd9cebf..e22dc143ae 100644 --- a/spec/bundler/fetcher/index_spec.rb +++ b/spec/bundler/fetcher/index_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::Fetcher::Index do diff --git a/spec/bundler/fetcher_spec.rb b/spec/bundler/fetcher_spec.rb index f1204e7b47..5ebffc42ff 100644 --- a/spec/bundler/fetcher_spec.rb +++ b/spec/bundler/fetcher_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/fetcher" diff --git a/spec/bundler/friendly_errors_spec.rb b/spec/bundler/friendly_errors_spec.rb index e178170967..ae197a4bab 100644 --- a/spec/bundler/friendly_errors_spec.rb +++ b/spec/bundler/friendly_errors_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler" require "bundler/friendly_errors" diff --git a/spec/bundler/gem_helper_spec.rb b/spec/bundler/gem_helper_spec.rb index 7c07a9d215..def926e364 100644 --- a/spec/bundler/gem_helper_spec.rb +++ b/spec/bundler/gem_helper_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "rake" require "bundler/gem_helper" diff --git a/spec/bundler/mirror_spec.rb b/spec/bundler/mirror_spec.rb index 88436fd029..bd6d9bc636 100644 --- a/spec/bundler/mirror_spec.rb +++ b/spec/bundler/mirror_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/mirror" diff --git a/spec/bundler/psyched_yaml_spec.rb b/spec/bundler/psyched_yaml_spec.rb index 2cc7dff842..4b7715b482 100644 --- a/spec/bundler/psyched_yaml_spec.rb +++ b/spec/bundler/psyched_yaml_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/psyched_yaml" diff --git a/spec/bundler/remote_specification_spec.rb b/spec/bundler/remote_specification_spec.rb index 1ff986b9a1..527f48facc 100644 --- a/spec/bundler/remote_specification_spec.rb +++ b/spec/bundler/remote_specification_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::RemoteSpecification do diff --git a/spec/bundler/retry_spec.rb b/spec/bundler/retry_spec.rb index 280ab07d08..cafa099b51 100644 --- a/spec/bundler/retry_spec.rb +++ b/spec/bundler/retry_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::Retry do diff --git a/spec/bundler/ruby_version_spec.rb b/spec/bundler/ruby_version_spec.rb index d7ab0105fd..9c9eda04dc 100644 --- a/spec/bundler/ruby_version_spec.rb +++ b/spec/bundler/ruby_version_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/ruby_version" diff --git a/spec/bundler/rubygems_integration_spec.rb b/spec/bundler/rubygems_integration_spec.rb index 84ce709913..917d673b51 100644 --- a/spec/bundler/rubygems_integration_spec.rb +++ b/spec/bundler/rubygems_integration_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::RubygemsIntegration do diff --git a/spec/bundler/settings_spec.rb b/spec/bundler/settings_spec.rb index 24c71744e1..239f5e6ade 100644 --- a/spec/bundler/settings_spec.rb +++ b/spec/bundler/settings_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/settings" diff --git a/spec/bundler/shared_helpers_spec.rb b/spec/bundler/shared_helpers_spec.rb index a72fc34a74..d72a7f49c9 100644 --- a/spec/bundler/shared_helpers_spec.rb +++ b/spec/bundler/shared_helpers_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/shared_helpers" @@ -187,14 +188,14 @@ describe Bundler::SharedHelpers do end it "ensures bundle bin path is in ENV['PATH']" do subject.set_bundle_environment - paths = (ENV["PATH"]).split(File::PATH_SEPARATOR) - expect(paths.include? "#{Bundler.bundle_path}/bin").to eq(true) + paths = ENV["PATH"].split(File::PATH_SEPARATOR) + expect(paths).to include("#{Bundler.bundle_path}/bin") end end shared_examples_for "ENV['RUBYOPT'] gets set correctly" do it "ensures -rbundler/setup is at the beginning of ENV['RUBYOPT']" do subject.set_bundle_environment - expect(ENV["RUBYOPT"].split(" ").first.include? "-rbundler/setup").to eq(true) + expect(ENV["RUBYOPT"].split(" ").first).to include("-rbundler/setup") end end shared_examples_for "ENV['RUBYLIB'] gets set correctly" do diff --git a/spec/bundler/source/git/git_proxy_spec.rb b/spec/bundler/source/git/git_proxy_spec.rb index 7e2083d595..10741b89a7 100644 --- a/spec/bundler/source/git/git_proxy_spec.rb +++ b/spec/bundler/source/git/git_proxy_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::Source::Git::GitProxy do diff --git a/spec/bundler/source/rubygems/remote_spec.rb b/spec/bundler/source/rubygems/remote_spec.rb index 599887d47a..a541bf1468 100644 --- a/spec/bundler/source/rubygems/remote_spec.rb +++ b/spec/bundler/source/rubygems/remote_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/source/rubygems/remote" diff --git a/spec/bundler/source/rubygems_spec.rb b/spec/bundler/source/rubygems_spec.rb index 33cb3672dc..9fb4bf0ad3 100644 --- a/spec/bundler/source/rubygems_spec.rb +++ b/spec/bundler/source/rubygems_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::Source::Rubygems do diff --git a/spec/bundler/source_list_spec.rb b/spec/bundler/source_list_spec.rb index 3beac46f41..d7567d6e11 100644 --- a/spec/bundler/source_list_spec.rb +++ b/spec/bundler/source_list_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::SourceList do diff --git a/spec/bundler/source_spec.rb b/spec/bundler/source_spec.rb index 5033354ff6..1b4e4bdde9 100644 --- a/spec/bundler/source_spec.rb +++ b/spec/bundler/source_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" describe Bundler::Source do diff --git a/spec/bundler/ssl_certs/certificate_manager_spec.rb b/spec/bundler/ssl_certs/certificate_manager_spec.rb index 81423ccf90..5a1650b432 100644 --- a/spec/bundler/ssl_certs/certificate_manager_spec.rb +++ b/spec/bundler/ssl_certs/certificate_manager_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "spec_helper" require "bundler/ssl_certs/certificate_manager" |