diff options
Diffstat (limited to 'spec/lib/container_registry/path_spec.rb')
-rw-r--r-- | spec/lib/container_registry/path_spec.rb | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/spec/lib/container_registry/path_spec.rb b/spec/lib/container_registry/path_spec.rb index f3b3a9a715f..b9c4572c269 100644 --- a/spec/lib/container_registry/path_spec.rb +++ b/spec/lib/container_registry/path_spec.rb @@ -33,20 +33,10 @@ describe ContainerRegistry::Path do end describe '#to_s' do - context 'when path does not have uppercase characters' do - let(:path) { 'some/image' } + let(:path) { 'some/image' } - it 'return a string with a repository path' do - expect(subject.to_s).to eq 'some/image' - end - end - - context 'when path has uppercase characters' do - let(:path) { 'SoMe/ImAgE' } - - it 'return a string with a repository path' do - expect(subject.to_s).to eq 'some/image' - end + it 'return a string with a repository path' do + expect(subject.to_s).to eq path end end @@ -80,12 +70,6 @@ describe ContainerRegistry::Path do it { is_expected.to be_valid } end - - context 'when path contains uppercase letters' do - let(:path) { 'Some/Registry' } - - it { is_expected.to be_valid } - end end describe '#has_repository?' do |