bundled_gems_spec.rb: Remove useless map

`Dir.[]` returns list of strings, `map(&:to_s)` does nothing.
This commit is contained in:
Nobuyoshi Nakada 2025-01-17 19:39:27 +09:00 committed by Nobuyoshi Nakada
parent dd69a75f2a
commit b034a3df68

View File

@ -31,7 +31,7 @@ RSpec.configure do |config|
FileUtils.cp_r Spec::Path.pristine_system_gem_path, Spec::Path.system_gem_path
FileUtils.mkdir_p Spec::Path.base_system_gem_path.join("gems")
%w[sinatra rack tilt rack-protection rack-session rack-test mustermann base64 logger compact_index].each do |gem|
path = Dir[File.expand_path("../.bundle/gems/#{gem}-*", __dir__)].map(&:to_s).first
path, = Dir[File.expand_path("../.bundle/gems/#{gem}-*", __dir__)]
FileUtils.cp_r path, Spec::Path.base_system_gem_path.join("gems")
end