diff options
Diffstat (limited to 'spec/lib/container_registry/registry_spec.rb')
-rw-r--r-- | spec/lib/container_registry/registry_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/lib/container_registry/registry_spec.rb b/spec/lib/container_registry/registry_spec.rb index c690d96b4f5..86231df5fdb 100644 --- a/spec/lib/container_registry/registry_spec.rb +++ b/spec/lib/container_registry/registry_spec.rb @@ -4,10 +4,15 @@ require 'spec_helper' RSpec.describe ContainerRegistry::Registry do let(:path) { nil } - let(:registry) { described_class.new('http://example.com', path: path) } + let(:registry_api_url) { 'http://example.com' } + let(:registry) { described_class.new(registry_api_url, path: path) } subject { registry } + before do + stub_container_registry_config(enabled: true, api_url: registry_api_url, key: 'spec/fixtures/x509_certificate_pk.key') + end + it { is_expected.to respond_to(:client) } it { is_expected.to respond_to(:uri) } it { is_expected.to respond_to(:path) } |