summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-02-20 09:47:44 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-02-20 09:47:44 +0900
commitc5396b64b5d83eb0ffdda357bb3e3efb46c5d1c8 (patch)
tree47f063e3d75d471f724c5d2dc93432e970bf3795
parent48c0ed4480c6fd1c3f35e9e808e84cfeecc9a97b (diff)
downloadbundler-c5396b64b5d83eb0ffdda357bb3e3efb46c5d1c8.tar.gz
Fixed cop failures
-rw-r--r--spec/commands/clean_spec.rb2
-rw-r--r--spec/quality_spec.rb2
-rw-r--r--spec/support/helpers.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/commands/clean_spec.rb b/spec/commands/clean_spec.rb
index 7e5da90473..f9c76fdfd0 100644
--- a/spec/commands/clean_spec.rb
+++ b/spec/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/quality_spec.rb b/spec/quality_spec.rb
index ce57c20e5c..cbeabb3b6e 100644
--- a/spec/quality_spec.rb
+++ b/spec/quality_spec.rb
@@ -219,7 +219,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/support/helpers.rb b/spec/support/helpers.rb
index 41b2004c19..e9138728fc 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -311,7 +311,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