diff options
Diffstat (limited to 'spec/pack/gems_spec.rb')
-rw-r--r-- | spec/pack/gems_spec.rb | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/spec/pack/gems_spec.rb b/spec/pack/gems_spec.rb index b477214f18..13c87e4a7d 100644 --- a/spec/pack/gems_spec.rb +++ b/spec/pack/gems_spec.rb @@ -1,6 +1,6 @@ require File.expand_path('../../spec_helper', __FILE__) -describe "bundle cache with gems" do +describe "bundle pack with gems" do describe "when there are only gemsources" do before :each do gemfile <<-G @@ -8,39 +8,15 @@ describe "bundle cache with gems" do G system_gems "rack-1.0.0" - bundle :cache + bundle :pack end - it "copies the .gem file to vendor/cache" do - bundled_app("vendor/cache/rack-1.0.0.gem").should exist - end - - it "uses the cache as a source when installing gems" do - system_gems [] - bundle :install - - should_be_installed("rack 1.0.0") + it "locks the gemfile" do + bundled_app("Gemfile.lock").should exist end - end - - describe "when there are also git sources" do - it "still works" do - build_git "foo" - system_gems "rack-1.0.0" - install_gemfile <<-G - git "#{lib_path("foo-1.0")}" - gem 'rack' - gem 'foo' - G - - bundle :cache - - system_gems [] - bundle :install - - should_be_installed("rack 1.0.0", "foo 1.0") + it "caches the gems" do + bundled_app("vendor/cache/rack-1.0.0.gem").should exist end end - end
\ No newline at end of file |