diff options
author | Stan Hu <stanhu@gmail.com> | 2016-03-27 05:54:12 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-03-27 08:52:44 -0700 |
commit | 2e328c1ea780d818ea1494bdd2edfbfc36165c24 (patch) | |
tree | a7099e9b676ee659254be090bda7e6df01e096c2 /spec/models/repository_spec.rb | |
parent | c1834664a7a29a32551291102265ece978c55ffe (diff) | |
download | gitlab-ce-2e328c1ea780d818ea1494bdd2edfbfc36165c24.tar.gz |
Expire the exists cache before deletion to ensure project dir actually exists
Closes #14659
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r-- | spec/models/repository_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb index f10d671104c..9242a6f1739 100644 --- a/spec/models/repository_spec.rb +++ b/spec/models/repository_spec.rb @@ -558,7 +558,7 @@ describe Repository, models: true do end it 'flushes the exists cache' do - expect(repository).to receive(:expire_exists_cache) + expect(repository).to receive(:expire_exists_cache).twice repository.before_delete end |