Sha256: af3d04cb79b49ab754b076c946fc3c0aa1c02f057f478908cc36ff25919c707e
Contents?: true
Size: 660 Bytes
Versions: 3
Compression:
Stored size: 660 Bytes
Contents
require 'spec_helper' require 'r10k/util/cacheable' RSpec.describe R10K::Util::Cacheable do subject { Object.new.extend(R10K::Util::Cacheable) } describe "dirname sanitization" do let(:input) { 'git://some/git/remote' } it 'sanitizes URL to directory name' do expect(subject.sanitized_dirname(input)).to eq('git---some-git-remote') end context 'with username and password' do let(:input) { 'https://"user:pa$$w0rd:@authenticated/git/remote' } it 'sanitizes authenticated URL to directory name' do expect(subject.sanitized_dirname(input)).to eq('https---authenticated-git-remote') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
r10k-3.14.2 | spec/unit/util/cacheable_spec.rb |
r10k-3.14.1 | spec/unit/util/cacheable_spec.rb |
r10k-3.14.0 | spec/unit/util/cacheable_spec.rb |