Sha256: a9b122836c4d013ffa1ef38defd495b682489f90cbfa2b3b183ea47bc727b17a

Contents?: true

Size: 679 Bytes

Versions: 67

Compression:

Stored size: 679 Bytes

Contents

require 'spec_helper'
require 'r10k/git/shellgit/cache'

describe R10K::Git::ShellGit::Cache do

  subject { described_class.new('git://some/git/remote') }

  it "wraps a ShellGit::BareRepository instance" do
    expect(subject.repo).to be_a_kind_of R10K::Git::ShellGit::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

67 entries across 67 versions & 1 rubygems

Version Path
r10k-3.14.2 spec/unit/git/shellgit/cache_spec.rb
r10k-3.14.1 spec/unit/git/shellgit/cache_spec.rb
r10k-3.14.0 spec/unit/git/shellgit/cache_spec.rb
r10k-3.13.0 spec/unit/git/shellgit/cache_spec.rb
r10k-3.12.1 spec/unit/git/shellgit/cache_spec.rb
r10k-3.12.0 spec/unit/git/shellgit/cache_spec.rb
r10k-3.11.0 spec/unit/git/shellgit/cache_spec.rb
r10k-3.10.0 spec/unit/git/shellgit/cache_spec.rb
r10k-3.9.3 spec/unit/git/shellgit/cache_spec.rb
r10k-3.9.2 spec/unit/git/shellgit/cache_spec.rb
r10k-3.9.1 spec/unit/git/shellgit/cache_spec.rb
r10k-3.9.0 spec/unit/git/shellgit/cache_spec.rb
r10k-3.8.0 spec/unit/git/shellgit/cache_spec.rb
r10k-3.7.0 spec/unit/git/shellgit/cache_spec.rb
r10k-3.6.0 spec/unit/git/shellgit/cache_spec.rb
r10k-2.6.9 spec/unit/git/shellgit/cache_spec.rb
r10k-3.5.2 spec/unit/git/shellgit/cache_spec.rb
r10k-3.5.1 spec/unit/git/shellgit/cache_spec.rb
r10k-3.5.0 spec/unit/git/shellgit/cache_spec.rb
r10k-3.4.1 spec/unit/git/shellgit/cache_spec.rb