diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 03:08:49 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 03:08:49 +0000 |
commit | 996c6bf06f602ada62e3f754c121c17051072892 (patch) | |
tree | c7568793468de0faef693795e00f34c07da8e793 /spec/models/project_spec.rb | |
parent | 0a0e82d1440b06650e5fc524168b1f50a8feec68 (diff) | |
download | gitlab-ce-996c6bf06f602ada62e3f754c121c17051072892.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 6c90a1b5614..9b1c724f0c2 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -1791,21 +1791,19 @@ describe Project do let(:project) { create(:project, :repository) } let(:repo) { double(:repo, exists?: true) } let(:wiki) { double(:wiki, exists?: true) } - let(:design) { double(:wiki, exists?: false) } it 'expires the caches of the repository and wiki' do + # In EE, there are design repositories as well + allow(Repository).to receive(:new).and_call_original + allow(Repository).to receive(:new) - .with('foo', project) + .with('foo', project, shard: project.repository_storage) .and_return(repo) allow(Repository).to receive(:new) - .with('foo.wiki', project) + .with('foo.wiki', project, shard: project.repository_storage, repo_type: Gitlab::GlRepository::WIKI) .and_return(wiki) - allow(Repository).to receive(:new) - .with('foo.design', project) - .and_return(design) - expect(repo).to receive(:before_delete) expect(wiki).to receive(:before_delete) |