summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-06-15 22:37:52 -0700
committerAndre Arko <andre@arko.net>2014-06-15 22:37:52 -0700
commit8452d4ea5e16449b5fdb85d43a7a3c4142afaaf2 (patch)
tree7a75b2318c599cb9306c1af471103df030d00bce
parentf8c47b28f9fa0cafd32d7c62d1da48df123f7fd9 (diff)
downloadbundler-8452d4ea5e16449b5fdb85d43a7a3c4142afaaf2.tar.gz
load rubygems before rspec
-rw-r--r--spec/spec_helper.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index c95c52d1a3..54e79bdcf8 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,12 +1,13 @@
$:.unshift File.expand_path('..', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
-require 'rspec'
-require 'bundler/psyched_yaml'
+# stdlib first
+require 'uri'
+require 'digest/sha1'
require 'fileutils'
+require 'bundler/psyched_yaml'
require 'rubygems'
+require 'rspec'
require 'bundler'
-require 'uri'
-require 'digest/sha1'
# Require the correct version of popen for the current platform
if RbConfig::CONFIG['host_os'] =~ /mingw|mswin/