Sha256: b5157abd70e50ed1dd73060362f2b33c4b008436a6f797b5576da17c3149045e

Contents?: true

Size: 601 Bytes

Versions: 30

Compression:

Stored size: 601 Bytes

Contents

require 'spec_helper'

describe Bundler::Source::Rubygems do
  before do
    Bundler.stub(:root){ Pathname.new("root") }
  end

  describe "caches" do
    it "should include Bundler.app_cache" do
      subject.caches.should include(Bundler.app_cache)
    end

    it "should include GEM_PATH entries" do
      Gem.path.each do |path|
        subject.caches.should include(File.expand_path("#{path}/cache"))
      end
    end

    it "should be an array of strings or pathnames" do
      subject.caches.each do |cache|
        [String, Pathname].should include(cache.class)
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
bundler-1.2.5 spec/bundler/source_spec.rb
bundler-1.2.4 spec/bundler/source_spec.rb
bundler-1.2.3 spec/bundler/source_spec.rb
bundler-1.2.2 spec/bundler/source_spec.rb
bundler-1.2.1 spec/bundler/source_spec.rb
bundler-1.2.0 spec/bundler/source_spec.rb
bundler-1.2.0.rc.2 spec/bundler/source_spec.rb
bundler-1.2.0.rc spec/bundler/source_spec.rb
bundler-1.1.5 spec/bundler/source_spec.rb
bundler-1.2.0.pre.1 spec/bundler/source_spec.rb
bundler-1.1.4 spec/bundler/source_spec.rb
rkh-bundler-1.2.0.pre spec/bundler/source_spec.rb
bundler-1.2.0.pre spec/bundler/source_spec.rb
bundler-1.1.3 spec/bundler/source_spec.rb
bundler-1.1.2 spec/bundler/source_spec.rb
bundler-1.1.1 spec/bundler/source_spec.rb
bundler-1.1.0 spec/bundler/source_spec.rb
bundler-1.1.rc.8 spec/bundler/source_spec.rb
bundler-1.1.rc.7 spec/bundler/source_spec.rb
bundler-1.1.rc.6 spec/bundler/source_spec.rb