From 7c2bbd1c7d40a30583844d649045824161772e36 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 20 Feb 2019 10:43:23 +0000 Subject: [PATCH] Adjust the rubycop rules of Bundler upstream repository. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/bundler/commands/clean_spec.rb | 2 +- spec/bundler/quality_spec.rb | 2 +- spec/bundler/support/helpers.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/bundler/commands/clean_spec.rb b/spec/bundler/commands/clean_spec.rb index c18c7a195f..e1f007fc35 100644 --- a/spec/bundler/commands/clean_spec.rb +++ b/spec/bundler/commands/clean_spec.rb @@ -464,7 +464,7 @@ RSpec.describe "bundle clean" do gem = ruby_core? ? ENV["BUNDLE_GEM"] : "gem" sys_exec! "#{gem} list" - expect(out).to include("foo (1.0.1, 1.0)") + expect(out).to include("foo (1.0.1, 1.0)") end it "cleans system gems when --force is used" do diff --git a/spec/bundler/quality_spec.rb b/spec/bundler/quality_spec.rb index 1b40ecce12..b24b42c542 100644 --- a/spec/bundler/quality_spec.rb +++ b/spec/bundler/quality_spec.rb @@ -228,7 +228,7 @@ RSpec.describe "The library itself" do if ruby_core? spec = Gem::Specification.load(gemspec.to_s) spec.bindir = "libexec" - File.open(root.join("bundler.gemspec").to_s, "w"){|f| f.write spec.to_ruby } + File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby } gem_command! :build, root.join("bundler.gemspec").to_s FileUtils.rm(root.join("bundler.gemspec").to_s) else diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index fbe63a2641..89c67c45b7 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -316,7 +316,7 @@ module Spec if ruby_core? spec = Gem::Specification.load(gemspec.to_s) spec.bindir = "libexec" - File.open(root.join("bundler.gemspec").to_s, "w"){|f| f.write spec.to_ruby } + File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby } Dir.chdir(root) { gem_command! :build, root.join("bundler.gemspec").to_s } FileUtils.rm(root.join("bundler.gemspec")) else