Sha256: 179e95a3ab98c47023d6f93217ac0806726ce32e65684d1c201f15cf19f945d3

Contents?: true

Size: 607 Bytes

Versions: 35

Compression:

Stored size: 607 Bytes

Contents

require 'spec_helper'

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

  describe "caches" do
    it "includes Bundler.app_cache" do
      expect(subject.caches).to include(Bundler.app_cache)
    end

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

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

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
bundler-1.7.15 spec/bundler/source/rubygems_spec.rb
bundler-1.7.14 spec/bundler/source/rubygems_spec.rb
bundler-1.7.13 spec/bundler/source/rubygems_spec.rb
bundler-1.7.12 spec/bundler/source/rubygems_spec.rb
bundler-1.7.11 spec/bundler/source/rubygems_spec.rb
bundler-1.7.10 spec/bundler/source/rubygems_spec.rb
bundler-1.7.9 spec/bundler/source/rubygems_spec.rb
bundler-1.7.8 spec/bundler/source/rubygems_spec.rb
bundler-1.7.7 spec/bundler/source/rubygems_spec.rb
bundler-1.7.6 spec/bundler/source/rubygems_spec.rb
bundler-1.6.9 spec/bundler/source_spec.rb
bundler-1.7.5 spec/bundler/source/rubygems_spec.rb
bundler-1.6.8 spec/bundler/source_spec.rb
bundler-1.7.4 spec/bundler/source/rubygems_spec.rb
bundler-1.6.7 spec/bundler/source_spec.rb
bundler-1.7.3 spec/bundler/source/rubygems_spec.rb
bundler-1.6.6 spec/bundler/source_spec.rb
bundler-1.7.2 spec/bundler/source/rubygems_spec.rb
bundler-1.7.1 spec/bundler/source/rubygems_spec.rb
bundler-1.7.1.pre.3 spec/bundler/source/rubygems_spec.rb