summaryrefslogtreecommitdiff
path: root/spec/lock
diff options
context:
space:
mode:
authorLars Haugseth <git@larshaugseth.com>2014-05-28 13:06:18 +0200
committerAndre Arko <andre@arko.net>2014-07-17 22:32:00 -0700
commit579d78d3e953a49e3bbfd12c8ead6809508b4a42 (patch)
tree0af8ef99c98e2a9965fedb2b7509f31023b6fe98 /spec/lock
parent173f996b0e92cf6eecb5974160a00d063f2fde7f (diff)
downloadbundler-579d78d3e953a49e3bbfd12c8ead6809508b4a42.tar.gz
Don't include configured source credentials in lockfile.
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 779fd1c613..ef016c2cb6 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}"