summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/bundled_gems_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundled_gems_spec.rb b/spec/bundled_gems_spec.rb
index c362881850..8014a48223 100644
--- a/spec/bundled_gems_spec.rb
+++ b/spec/bundled_gems_spec.rb
@@ -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