summaryrefslogtreecommitdiff
path: root/spec/support/artifice/fail.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/artifice/fail.rb')
-rw-r--r--spec/support/artifice/fail.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/support/artifice/fail.rb b/spec/support/artifice/fail.rb
index 2e29c03c5b..2ef009c7c8 100644
--- a/spec/support/artifice/fail.rb
+++ b/spec/support/artifice/fail.rb
@@ -3,10 +3,7 @@
require File.expand_path("../../path.rb", __FILE__)
# Set up pretend http gem server with Artifice
-$LOAD_PATH.unshift Dir[Spec::Path.base_system_gems.join("gems/artifice*/lib")].first.to_s
-$LOAD_PATH.unshift Dir[Spec::Path.base_system_gems.join("gems/rack-*/lib")].first.to_s
-$LOAD_PATH.unshift Dir[Spec::Path.base_system_gems.join("gems/rack-*/lib")].last.to_s
-$LOAD_PATH.unshift Dir[Spec::Path.base_system_gems.join("gems/tilt*/lib")].first.to_s
+$LOAD_PATH.unshift(*Dir[Spec::Path.base_system_gems.join("gems/{artifice,rack,tilt}-*/lib")].map(&:to_s))
require "artifice"
class Fail