diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2012-03-22 21:35:44 +0100 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2012-03-22 21:35:44 +0100 |
commit | d389686b681732fe12edc8797333b01648914a56 (patch) | |
tree | f33fc929b1578ef2caa6b3c80b0c5730778fa2f6 /spec/cache | |
parent | c8a738bd6c01b00abacd30fef86facd034602f48 (diff) | |
download | bundler-d389686b681732fe12edc8797333b01648914a56.tar.gz |
Ensure packaged path repos can be updated.
Diffstat (limited to 'spec/cache')
-rw-r--r-- | spec/cache/path_spec.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/cache/path_spec.rb b/spec/cache/path_spec.rb index 7e3d40d1..a50e5d93 100644 --- a/spec/cache/path_spec.rb +++ b/spec/cache/path_spec.rb @@ -28,6 +28,28 @@ require "spec_helper" should_be_installed "foo 1.0" end + it "updates the path on each cache" do + build_lib "foo" + + install_gemfile <<-G + gem "foo", :path => '#{lib_path("foo-1.0")}' + G + + bundle "#{cmd} --all" + + build_lib "foo" do |s| + s.write "lib/foo.rb", "puts :CACHE" + end + + bundle "#{cmd} --all" + + bundled_app("vendor/cache/foo-1.0").should exist + FileUtils.rm_rf lib_path("foo-1.0") + + run "require 'foo'" + out.should == "CACHE" + end + it "raises a warning without --all" do build_lib "foo" |