summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-21 11:06:42 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-21 11:06:42 -0700
commit22f6e84d34eecf8d478c49f9f3369d2b71933a27 (patch)
tree589f69f80f71a5e8cfce326214f7d1a388d4481c /spec/spec_helper.rb
parentd3e3be2979fe9036cd478857952281540afa36f2 (diff)
downloadmixlib-authentication-22f6e84d34eecf8d478c49f9f3369d2b71933a27.tar.gz
Optimize our requires
Avoid requiring things that are already defined. Rubygems is very slow at traversing the filesystem. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 4fd27f0..f10ee93 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -19,4 +19,4 @@
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")) # lib in mixlib-authentication
-require "rubygems"
+require "rubygems" unless defined?(Gem)