diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-12-28 12:19:55 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2019-01-02 15:31:35 +0100 |
commit | e893f560e01c0039a4fc4c6c93be8e82b5888b3b (patch) | |
tree | 03d8014fb8b3ad9906ccd90b25507bca629e7e58 /spec/models/project_spec.rb | |
parent | 7388a911aa61ad3a9fb061517e22e74427155b5e (diff) | |
download | gitlab-ce-e893f560e01c0039a4fc4c6c93be8e82b5888b3b.tar.gz |
Remove unnecessary double caching (in hash and request store)dm-git-access-any-ce
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index f195f7ce48e..fa0f3620806 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -3932,13 +3932,6 @@ describe Project do .to be_falsy end - it 'caches the result' do - control = ActiveRecord::QueryRecorder.new { project.branch_allows_collaboration?(user, 'awesome-feature-1') } - - expect { 3.times { project.branch_allows_collaboration?(user, 'awesome-feature-1') } } - .not_to exceed_query_limit(control) - end - context 'when the requeststore is active', :request_store do it 'only queries per project across instances' do control = ActiveRecord::QueryRecorder.new { project.branch_allows_collaboration?(user, 'awesome-feature-1') } |