Skip to content

Commit 6a97569

Browse files
committed
bundled_gems_spec.rb: Remove useless map
`Dir.[]` returns list of strings, `map(&:to_s)` does nothing.
1 parent 8989995 commit 6a97569

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/bundled_gems_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def self.ruby=(ruby)
3131
FileUtils.cp_r Spec::Path.pristine_system_gem_path, Spec::Path.system_gem_path
3232
FileUtils.mkdir_p Spec::Path.base_system_gem_path.join("gems")
3333
%w[sinatra rack tilt rack-protection rack-session rack-test mustermann base64 logger compact_index].each do |gem|
34-
path = Dir[File.expand_path("../.bundle/gems/#{gem}-*", __dir__)].map(&:to_s).first
34+
path, = Dir[File.expand_path("../.bundle/gems/#{gem}-*", __dir__)]
3535
FileUtils.cp_r path, Spec::Path.base_system_gem_path.join("gems")
3636
end
3737

0 commit comments

Comments
 (0)