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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-21 02:50:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-21 02:50:22 +0300
commit9dc93a4519d9d5d7be48ff274127136236a3adb3 (patch)
tree70467ae3692a0e35e5ea56bcb803eb512a10bedb /spec/controllers/dashboard
parent4b0f34b6d759d6299322b3a54453e930c6121ff0 (diff)
Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43
Diffstat (limited to 'spec/controllers/dashboard')
-rw-r--r--spec/controllers/dashboard/snippets_controller_spec.rb19
1 files changed, 1 insertions, 18 deletions
diff --git a/spec/controllers/dashboard/snippets_controller_spec.rb b/spec/controllers/dashboard/snippets_controller_spec.rb
index 016a9f53129..180369447b4 100644
--- a/spec/controllers/dashboard/snippets_controller_spec.rb
+++ b/spec/controllers/dashboard/snippets_controller_spec.rb
@@ -29,23 +29,6 @@ RSpec.describe Dashboard::SnippetsController do
it_behaves_like 'snippets sort order'
- context 'when views are rendered' do
- render_views
-
- it 'avoids N+1 database queries' do
- # Warming call to load everything non snippet related
- get(:index)
-
- project = create(:project, namespace: user.namespace)
- create(:project_snippet, project: project, author: user)
-
- control_count = ActiveRecord::QueryRecorder.new { get(:index) }.count
-
- project = create(:project, namespace: user.namespace)
- create(:project_snippet, project: project, author: user)
-
- expect { get(:index) }.not_to exceed_query_limit(control_count)
- end
- end
+ it_behaves_like 'snippets views'
end
end