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:
authorStan Hu <stanhu@gmail.com>2018-04-15 01:36:36 +0300
committerStan Hu <stanhu@gmail.com>2018-04-15 01:36:36 +0300
commit74e5ec198cbafe5d83690fae970ff73e5ef4cfcb (patch)
tree7f1897390cbdbb9d276311c28b36dbe04f0862a2 /spec/models/repository_spec.rb
parentb1f15dfa42fb7b8f74a439806f004eaa5ed598a8 (diff)
Fix failing ./spec/lib/backup/repository_spec.rb by clearing the memoized value
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r--spec/models/repository_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb
index 60ab52565cb..e45fe7db1e7 100644
--- a/spec/models/repository_spec.rb
+++ b/spec/models/repository_spec.rb
@@ -1437,6 +1437,12 @@ describe Repository do
repository.expire_emptiness_caches
end
+
+ it 'expires the memoized repository cache' do
+ allow(repository.raw_repository).to receive(:expire_has_local_branches_cache).and_call_original
+
+ repository.expire_emptiness_caches
+ end
end
describe 'skip_merges option' do