mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
bundled_gems_spec.rb: Remove useless map
`Dir.[]` returns list of strings, `map(&:to_s)` does nothing.
This commit is contained in:
parent
dd69a75f2a
commit
b034a3df68
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user