aboutsummaryrefslogtreecommitdiffstats
path: root/spec/install
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-12-06 17:03:35 -0800
committerAndre Arko <andre@arko.net>2014-12-06 17:03:35 -0800
commit2e7ca9fd61789598e4c7847a90931d128ba4a583 (patch)
tree5c5ff49848a58c1e81bd295da2cd42c5474a36d9 /spec/install
parent0ff452a5e37661c69ed0e82b200f74a70ba97525 (diff)
parent6140bc3b68bff39a938ff29a192146aaa9248903 (diff)
downloadbundler-2e7ca9fd61789598e4c7847a90931d128ba4a583.tar.gz
Merge tag 'v1.7.8'
Version 1.7.8 Conflicts: CHANGELOG.md lib/bundler/fetcher.rb lib/bundler/source/path.rb lib/bundler/source/rubygems.rb spec/spec_helper.rb
Diffstat (limited to 'spec/install')
-rw-r--r--spec/install/gems/dependency_api_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/install/gems/dependency_api_spec.rb b/spec/install/gems/dependency_api_spec.rb
index dc9e0109..e2c2707f 100644
--- a/spec/install/gems/dependency_api_spec.rb
+++ b/spec/install/gems/dependency_api_spec.rb
@@ -444,6 +444,19 @@ describe "gemcutter's dependency API" do
expect(out).not_to include("#{user}:#{password}")
end
+ it "strips http basic auth creds when warning about ambiguous sources" do
+ gemfile <<-G
+ source "#{basic_auth_source_uri}"
+ source "file://#{gem_repo1}"
+ gem "rack"
+ G
+
+ bundle :install, :artifice => "endpoint_basic_authentication"
+ expect(out).to include("Warning: the gem 'rack' was found in multiple sources.")
+ expect(out).not_to include("#{user}:#{password}")
+ should_be_installed "rack 1.0.0"
+ end
+
it "does not pass the user / password to different hosts on redirect" do
gemfile <<-G
source "#{basic_auth_source_uri}"