diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-16 18:03:55 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-16 18:03:55 -0500 |
commit | 91c4002a0c2f32944ec669cc159c4b1c9176866f (patch) | |
tree | 8ef37d8bbaa0cae3ff56a0f8b69b5314b4a598f2 /spec/support | |
parent | 72a71e9d17c75b11e82623cd9edd22ba70c9ba4f (diff) | |
download | gitlab-ce-91c4002a0c2f32944ec669cc159c4b1c9176866f.tar.gz |
Improve test coverage
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/stub_gitlab_calls.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/stub_gitlab_calls.rb b/spec/support/stub_gitlab_calls.rb index 2c31cbe3faf..36e234c2e9c 100644 --- a/spec/support/stub_gitlab_calls.rb +++ b/spec/support/stub_gitlab_calls.rb @@ -25,7 +25,11 @@ module StubGitlabCalls allow_any_instance_of(Project).to receive(:builds_enabled?).and_return(false) end - def stub_container_registry(*tags) + def stub_container_registry_config(registry_settings) + allow(Gitlab.config.registry).to receive_messages(registry_settings) + end + + def stub_container_registry_tags(*tags) allow_any_instance_of(ContainerRegistry::Client).to receive(:repository_tags).and_return( { "tags" => tags } ) |