Sha256: 5660a608b7141e0b42e19bda29d1d6f5db150b41a92a911187c5a7cf995db34a

Contents?: true

Size: 676 Bytes

Versions: 7

Compression:

Stored size: 676 Bytes

Contents

require 'spec_helper'
require 'r10k/git/rugged/cache'

describe R10K::Git::Rugged::Cache do
  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

7 entries across 7 versions & 1 rubygems

Version Path
r10k-2.1.1 spec/unit/git/rugged/cache_spec.rb
r10k-2.1.0 spec/unit/git/rugged/cache_spec.rb
r10k-2.0.3 spec/unit/git/rugged/cache_spec.rb
r10k-2.0.2 spec/unit/git/rugged/cache_spec.rb
r10k-2.0.1 spec/unit/git/rugged/cache_spec.rb
r10k-2.0.0 spec/unit/git/rugged/cache_spec.rb
r10k-1.5.1 spec/unit/git/rugged/cache_spec.rb