1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
require 'spec_helper'
require 'r10k/git/shellgit/cache'
describe R10K::Git::ShellGit::Cache do
subject { described_class.new('https://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
|