aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorTerence Lee <terence@heroku.com>2011-06-11 15:01:13 -0500
committerTerence Lee <terence@heroku.com>2011-06-11 15:01:50 -0500
commit70c52c347ae96991a95cd77cde77a12c5df5280f (patch)
treeb3986e94d8e938e3df28f6ed3fca4c8db571fc23 /spec/spec_helper.rb
parent2b6e7fc5b86202879eecea5391c6fcf96b11d74b (diff)
downloadbundler-70c52c347ae96991a95cd77cde77a12c5df5280f.tar.gz
Pass basic auth details to the (possible) API endpoint. (Thanks dpiddy)
Given a source such as `http://foo:bar@gems.com`, the basic auth info needs to be passed on so, if the source is not an API endpoint, it will return 404 instead of 401. The fetcher will then fall back to fetching the full specs as expected instead of bailing. Conflicts: spec/install/gems/dependency_api_spec.rb
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index baa9e170..521f79d7 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -5,6 +5,7 @@ require 'fileutils'
require 'rubygems'
require 'bundler'
require 'rspec'
+require 'uri'
# Require the correct version of popen for the current platform
if RbConfig::CONFIG['host_os'] =~ /mingw|mswin/