summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-07-21 17:14:53 -0700
committerCarlhuda <carlhuda@engineyard.com>2010-07-21 17:14:53 -0700
commit19192a31d1eebd89acc767df0389b00640c6e8eb (patch)
tree7440e8a23bde2d171675e3ec7747e5c342d1cd40 /spec
parentf0a65fea6ba4907a181eae5ede77bc1d74fa7c78 (diff)
downloadbundler-19192a31d1eebd89acc767df0389b00640c6e8eb.tar.gz
Unlock Path sources when their dependencies change
Diffstat (limited to 'spec')
-rw-r--r--spec/install/path_spec.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/install/path_spec.rb b/spec/install/path_spec.rb
index 790166cbbf..d82e2223f0 100644
--- a/spec/install/path_spec.rb
+++ b/spec/install/path_spec.rb
@@ -261,6 +261,27 @@ describe "bundle install with explicit source paths" do
end
end
+ describe "when dependencies in the path are updated" do
+ before :each do
+ build_lib "foo", "1.0", :path => lib_path("foo")
+
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "foo", :path => "#{lib_path('foo')}"
+ G
+ end
+
+ it "gets dependencies that are updated in the path" do
+ build_lib "foo", "1.0", :path => lib_path("foo") do |s|
+ s.add_dependency "rack"
+ end
+
+ bundle "install"
+
+ should_be_installed "rack 1.0.0"
+ end
+ end
+
describe "switching sources" do
it "doesn't switch pinned git sources to rubygems when pinning the parent gem to a path source" do
build_gem "foo", "1.0", :to_system => true do |s|