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:
authorSean McGivern <sean@mcgivern.me.uk>2018-03-08 13:33:59 +0300
committerSean McGivern <sean@mcgivern.me.uk>2018-03-08 13:33:59 +0300
commit15b4e9815e88de7a1ef0eda1603685c49ae80aa1 (patch)
tree7344414579e5724ee8c5c82a82f1cd48dd77ae35 /spec/models/repository_spec.rb
parent0a6c82ea52ae1b1d62003dd303c687cef4508952 (diff)
parent611929eb96c0ee9f07d98163d0610325d8a2a322 (diff)
Merge branch 'sh-remove-double-caching-repo-empty' into 'master'
Remove double caching of Repository#empty? Closes #43882 See merge request gitlab-org/gitlab-ce!17588
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r--spec/models/repository_spec.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb
index 579069ffa14..93a61c6ea71 100644
--- a/spec/models/repository_spec.rb
+++ b/spec/models/repository_spec.rb
@@ -1447,7 +1447,6 @@ describe Repository do
it 'expires the caches for an empty repository' do
allow(repository).to receive(:empty?).and_return(true)
- expect(cache).to receive(:expire).with(:empty?)
expect(cache).to receive(:expire).with(:has_visible_content?)
repository.expire_emptiness_caches
@@ -1456,7 +1455,6 @@ describe Repository do
it 'does not expire the cache for a non-empty repository' do
allow(repository).to receive(:empty?).and_return(false)
- expect(cache).not_to receive(:expire).with(:empty?)
expect(cache).not_to receive(:expire).with(:has_visible_content?)
repository.expire_emptiness_caches