Sha256: bf154d9d7b67a32911a68a12e859cbb8979408aac8ad2c32219f929b8637bc6b

Contents?: true

Size: 664 Bytes

Versions: 58

Compression:

Stored size: 664 Bytes

Contents

require "spec_helper"

describe "bundle cache" do
  describe "with path sources" do
    it "is silent when the path is within the bundle" do
      build_lib "foo", :path => bundled_app("lib/foo")

      install_gemfile <<-G
        gem "foo", :path => '#{bundled_app("lib/foo")}'
      G

      bundle "cache"
      out.should == "Updating .gem files in vendor/cache"
    end

    it "warns when the path is outside of the bundle" do
      build_lib "foo"

      install_gemfile <<-G
        gem "foo", :path => '#{lib_path("foo-1.0")}'
      G

      bundle "cache"
      out.should include("foo at `#{lib_path("foo-1.0")}` will not be cached")
    end
  end
end

Version data entries

58 entries across 58 versions & 6 rubygems

Version Path
bundler-1.1.5 spec/cache/path_spec.rb
bundler-1.1.4 spec/cache/path_spec.rb
bundler-1.1.3 spec/cache/path_spec.rb
bundler-1.1.2 spec/cache/path_spec.rb
bundler-1.1.1 spec/cache/path_spec.rb
bundler-1.1.0 spec/cache/path_spec.rb
bundler-1.1.rc.8 spec/cache/path_spec.rb
bundler-1.0.22 spec/cache/path_spec.rb
bundler-1.1.rc.7 spec/cache/path_spec.rb
bundler-1.1.rc.6 spec/cache/path_spec.rb
bundler-1.1.rc.5 spec/cache/path_spec.rb
bundler-1.1.rc.3 spec/cache/path_spec.rb
bundler-1.1.rc.2 spec/cache/path_spec.rb
mpapis-bundler-1.0.21.1 spec/cache/path_spec.rb
mpapis-bundler-1.0.21 spec/cache/path_spec.rb
bundler-maglev--1.0.21 spec/cache/path_spec.rb
bundler-1.1.rc spec/cache/path_spec.rb
bundler-1.0.21 spec/cache/path_spec.rb
bundler-1.0.21.rc spec/cache/path_spec.rb
bundler-1.0.20 spec/cache/path_spec.rb