diff options
author | Terence Lee <terence@heroku.com> | 2011-06-11 15:01:13 -0500 |
---|---|---|
committer | Terence Lee <terence@heroku.com> | 2011-06-11 15:01:50 -0500 |
commit | 70c52c347ae96991a95cd77cde77a12c5df5280f (patch) | |
tree | b3986e94d8e938e3df28f6ed3fca4c8db571fc23 /spec/spec_helper.rb | |
parent | 2b6e7fc5b86202879eecea5391c6fcf96b11d74b (diff) | |
download | bundler-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.rb | 1 |
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/ |