diff options
author | Carl Lerche <carllerche@mac.com> | 2010-06-23 13:54:42 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-06-23 13:54:42 -0700 |
commit | 2eeff95e617c0bde57fab2eedfbef970b29ec9f9 (patch) | |
tree | 423e6f554dad8706f3a8051f500bdb9a482722ee /spec/cache | |
parent | 1e1bf7ce98b24e24ee05313c31fd38370bc3b9f7 (diff) | |
download | bundler-2eeff95e617c0bde57fab2eedfbef970b29ec9f9.tar.gz |
Add bundle install --local to enable installing from vendor/cache
Diffstat (limited to 'spec/cache')
-rw-r--r-- | spec/cache/gems_spec.rb | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/spec/cache/gems_spec.rb b/spec/cache/gems_spec.rb index 3d8b14b1..3a9bb773 100644 --- a/spec/cache/gems_spec.rb +++ b/spec/cache/gems_spec.rb @@ -17,9 +17,8 @@ describe "bundle cache" do end it "uses the cache as a source when installing gems" do - pending_cache_fixes system_gems [] - bundle :install + bundle "install --local" should_be_installed("rack 1.0.0") end @@ -37,9 +36,9 @@ describe "bundle cache" do end it "does not reinstall gems from the cache if they exist in the bundle" do - pending_cache_fixes - system_gems [] - install_gemfile <<-G + system_gems "rack-1.0.0" + + gemfile <<-G gem "rack" G @@ -47,18 +46,18 @@ describe "bundle cache" do s.write "lib/rack.rb", "RACK = 'FAIL'" end - bundle :install + bundle "install --local" should_be_installed("rack 1.0.0") end end describe "when there are also git sources" do it "still works" do - pending_cache_fixes build_git "foo" system_gems "rack-1.0.0" install_gemfile <<-G + source "file://#{gem_repo1}" git "#{lib_path("foo-1.0")}" gem 'rack' gem 'foo' @@ -67,7 +66,7 @@ describe "bundle cache" do bundle :cache system_gems [] - bundle :install + bundle "install --local" should_be_installed("rack 1.0.0", "foo 1.0") end |