diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-11 06:07:52 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-11 06:07:52 +0000 |
commit | 7b875aa3fd1645e2e881997256ba94c6cb73ab3d (patch) | |
tree | 59b1637c36624ee863e12f9e176425627ab3deb5 /spec | |
parent | 9caed104bc903734d996161ba13a579f2be49d7c (diff) | |
download | gitlab-ce-7b875aa3fd1645e2e881997256ba94c6cb73ab3d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 2f382031714..e7abdf847e1 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -1793,6 +1793,7 @@ 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 allow(Repository).to receive(:new) @@ -1803,6 +1804,10 @@ describe Project do .with('foo.wiki', project) .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) |