[bundler/bundler] Remve another unneeded to_s

`FileUtils.rm` supports a `Pathname` argument.

7d982a5be9
This commit is contained in:
David Rodríguez 2019-08-15 18:41:55 +02:00 committed by Hiroshi SHIBATA
parent 9925e1a10f
commit adfca752d6
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -232,7 +232,7 @@ RSpec.describe "The library itself" do
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")
FileUtils.rm(root.join("bundler.gemspec").to_s)
FileUtils.rm(root.join("bundler.gemspec"))
else
gem_command! :build, gemspec
end