summaryrefslogtreecommitdiff
path: root/spec/models/project_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-04 13:13:51 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-04 13:13:51 +0200
commit33329d40df85c81b0a932c53a6152e03fc1f7363 (patch)
treecbc216d3362d7476ec8bd1661b18a35889b4331b /spec/models/project_spec.rb
parent666ba382e900b0972d457af4f8784ef61324be5c (diff)
downloadgitlab-ce-33329d40df85c81b0a932c53a6152e03fc1f7363.tar.gz
Fix project specs related to container registry
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r--spec/models/project_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 4c13e53d831..da1372fe761 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -1157,11 +1157,12 @@ describe Project, models: true do
# Project#gitlab_shell returns a new instance of Gitlab::Shell on every
# call. This makes testing a bit easier.
allow(project).to receive(:gitlab_shell).and_return(gitlab_shell)
-
allow(project).to receive(:previous_changes).and_return('path' => ['foo'])
end
it 'renames a repository' do
+ stub_container_registry_config(enabled: false)
+
expect(gitlab_shell).to receive(:mv_repository).
ordered.
with(project.repository_storage_path, "#{project.namespace.full_path}/foo", "#{project.full_path}").