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
path: root/spec
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-04-07 13:31:04 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2016-04-07 13:31:04 +0300
commita918e8bf277418048776a5d9c34a64b39f4e56f3 (patch)
tree6eb4c5f66e5ec0c99a11fc06be15880bf43a629b /spec
parent144912851c388327c31387094ed9054a8e2b322c (diff)
parent27b9f64efbbce9d74eeb9c4ae340506242c474cb (diff)
Merge branch 'fix-project-404-cache-issue' into 'master'
Expire caches after project creation to ensure a consistent state See merge request !3586
Diffstat (limited to 'spec')
-rw-r--r--spec/models/repository_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb
index f517f325c03..4e49c413f23 100644
--- a/spec/models/repository_spec.rb
+++ b/spec/models/repository_spec.rb
@@ -670,6 +670,19 @@ describe Repository, models: true do
repository.after_create
end
+
+ it 'flushes the root ref cache' do
+ expect(repository).to receive(:expire_root_ref_cache)
+
+ repository.after_create
+ end
+
+ it 'flushes the emptiness caches' do
+ expect(repository).to receive(:expire_emptiness_caches)
+
+ repository.after_create
+ end
+
end
describe "#main_language" do