Sha256: 229d0a1c7f9ce06419f74a68994c6bcff78a3d7f9f139195122f23844958f653
Contents?: true
Size: 745 Bytes
Versions: 57
Compression:
Stored size: 745 Bytes
Contents
require 'spec_helper' describe R10K::Git::Rugged::Cache, :unless => R10K::Util::Platform.jruby? do before(:all) do require 'r10k/git/rugged/cache' end subject(:cache) { described_class.new('git://some/git/remote') } it "wraps a Rugged::BareRepository instance" do expect(cache.repo).to be_a_kind_of R10K::Git::Rugged::BareRepository end describe "settings" do before do R10K::Git::Cache.settings[:cache_root] = '/some/path' described_class.settings.reset! end after do R10K::Git::Cache.settings.reset! described_class.settings.reset! end it "falls back to the parent class settings" do expect(described_class.settings[:cache_root]).to eq '/some/path' end end end
Version data entries
57 entries across 57 versions & 1 rubygems