Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 11:38:37 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 11:38:37 +0300
commit662d2e68173ecc8ee1bfe9dddf8cc38766bd310b (patch)
tree0366d87576231f7c3da07a54ee9bfa6955794810 /spec/support/stub_gitlab_calls.rb
parentfc550b398be6cdc4584dad79411929305815ffaa (diff)
Refactor feature specs for container registry
Diffstat (limited to 'spec/support/stub_gitlab_calls.rb')
-rw-r--r--spec/support/stub_gitlab_calls.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/support/stub_gitlab_calls.rb b/spec/support/stub_gitlab_calls.rb
index 3949784aabb..dbf3ace37c3 100644
--- a/spec/support/stub_gitlab_calls.rb
+++ b/spec/support/stub_gitlab_calls.rb
@@ -32,15 +32,15 @@ module StubGitlabCalls
end
def stub_container_registry_tags(*tags)
- allow_any_instance_of(ContainerRegistry::Client).to receive(:repository_tags).and_return(
- { "tags" => tags }
- )
- allow_any_instance_of(ContainerRegistry::Client).to receive(:repository_manifest).and_return(
- JSON.parse(File.read(Rails.root + 'spec/fixtures/container_registry/tag_manifest.json'))
- )
+ allow_any_instance_of(ContainerRegistry::Client)
+ .to receive(:repository_tags).and_return({ 'tags' => tags })
+
+ allow_any_instance_of(ContainerRegistry::Client)
+ .to receive(:repository_manifest).and_return(
+ JSON.parse(File.read(Rails.root + 'spec/fixtures/container_registry/tag_manifest.json')))
+
allow_any_instance_of(ContainerRegistry::Client).to receive(:blob).and_return(
- File.read(Rails.root + 'spec/fixtures/container_registry/config_blob.json')
- )
+ File.read(Rails.root + 'spec/fixtures/container_registry/config_blob.json'))
end
private