diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 18:25:56 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 08:43:52 +0200 |
commit | 6bdb13c899fad815b8fd5c03100f9492ba8e93dc (patch) | |
tree | 82dc50ea1e5544c8b13dcbe5c60b6d4ae1df9c0f | |
parent | a4cca66b79534b8644fbb12b96fd3bd3c253d76a (diff) | |
download | bundler-6bdb13c899fad815b8fd5c03100f9492ba8e93dc.tar.gz |
Remove unneeded `to_s` calls
They are implicit inside `gem_command!`.
-rw-r--r-- | spec/quality_spec.rb | 2 | ||||
-rw-r--r-- | spec/support/helpers.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb index 85d0084e9a..8c9a1b6c35 100644 --- a/spec/quality_spec.rb +++ b/spec/quality_spec.rb @@ -231,7 +231,7 @@ RSpec.describe "The library itself" do 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 } - gem_command! :build, root.join("bundler.gemspec").to_s + gem_command! :build, root.join("bundler.gemspec") FileUtils.rm(root.join("bundler.gemspec").to_s) else gem_command! :build, gemspec diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index a46292665b..058c7a893d 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -302,10 +302,10 @@ module Spec 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 } - Dir.chdir(root) { gem_command! :build, root.join("bundler.gemspec").to_s } + Dir.chdir(root) { gem_command! :build, root.join("bundler.gemspec") } FileUtils.rm(root.join("bundler.gemspec")) else - Dir.chdir(root) { gem_command! :build, gemspec.to_s } + Dir.chdir(root) { gem_command! :build, gemspec } end bundler_path = root.join("bundler-#{Bundler::VERSION}.gem") elsif g.to_s =~ %r{\A(?:[A-Z]:)?/.*\.gem\z} |