summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-06 16:56:01 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-06 18:36:08 +0200
commitf11c9a2b3f49387413222ee7c4448d42615700d7 (patch)
treef6ccdf575d2e815a0ced08dfdbeeff758ea07243
parentcde4f2524b91a3b8b92bc674a5540346bef09c83 (diff)
downloadbundler-f11c9a2b3f49387413222ee7c4448d42615700d7.tar.gz
Normalize style with other artifice files
-rw-r--r--spec/support/artifice/windows.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/support/artifice/windows.rb b/spec/support/artifice/windows.rb
index f39b2c6d53..f7fe26ae7b 100644
--- a/spec/support/artifice/windows.rb
+++ b/spec/support/artifice/windows.rb
@@ -3,10 +3,8 @@
require File.expand_path("../../path.rb", __FILE__)
include Spec::Path
-$LOAD_PATH.unshift Dir[base_system_gems.join("gems/artifice*/lib")].first.to_s
-$LOAD_PATH.unshift(*Dir[base_system_gems.join("gems/rack-*/lib")])
-$LOAD_PATH.unshift Dir[base_system_gems.join("gems/tilt*/lib")].first.to_s
-$LOAD_PATH.unshift Dir[base_system_gems.join("gems/sinatra*/lib")].first.to_s
+$LOAD_PATH.unshift(*Dir[Spec::Path.base_system_gems.join("gems/{artifice,rack,tilt,sinatra}-*/lib")].map(&:to_s))
+
require "artifice"
require "sinatra/base"