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