aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lock
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-05-29 11:32:13 -0700
committerAndre Arko <andre@arko.net>2014-05-29 11:32:13 -0700
commitdc59bc059d4f423961cf4471214005af10e95267 (patch)
tree64a86db8d7f913782bd6b7ac842466a7d4cf2200 /spec/lock
parentb2c2c267309ff6d8b4ab497e4c38277b9263c7cf (diff)
parentdf3709973db527d5935615a59a2098db4b95edce (diff)
downloadbundler-dc59bc059d4f423961cf4471214005af10e95267.tar.gz
Merge pull request #3049 from lhz/fix-configured-credentials-in-lock
Don't store configured source credentials in Gemfile.lock Conflicts: CHANGELOG.md
Diffstat (limited to 'spec/lock')
-rw-r--r--spec/lock/lockfile_spec.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/lock/lockfile_spec.rb b/spec/lock/lockfile_spec.rb
index 6bd8d68d..48a20f4c 100644
--- a/spec/lock/lockfile_spec.rb
+++ b/spec/lock/lockfile_spec.rb
@@ -70,6 +70,31 @@ describe "the lockfile format" do
G
end
+ it "generates a lockfile wihout credentials for a configured source" do
+ bundle "config http://localgemserver.test/ user:pass"
+
+ install_gemfile(<<-G, :artifice => "endpoint_strict_basic_authentication", :quiet => true)
+ source "http://localgemserver.test/"
+
+ gem "rack-obama", ">= 1.0"
+ G
+
+ lockfile_should_be <<-G
+ GEM
+ remote: http://localgemserver.test/
+ specs:
+ rack (1.0.0)
+ rack-obama (1.0)
+ rack
+
+ PLATFORMS
+ #{generic(Gem::Platform.local)}
+
+ DEPENDENCIES
+ rack-obama (>= 1.0)
+ G
+ end
+
it "generates lockfiles with multiple requirements" do
install_gemfile <<-G
source "file://#{gem_repo1}"