summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/pipeline_schedules_controller_spec.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-12-08 22:20:28 -0800
committerStan Hu <stanhu@gmail.com>2017-12-12 15:07:24 -0800
commitf8c3a58a54d622193a0cf15777a0d0631289278c (patch)
treea916d2f76e125247ff357328ee5d0f887f4b3871 /spec/controllers/projects/pipeline_schedules_controller_spec.rb
parent0ea70802e19cbe11c6af0f6750200bb137225940 (diff)
downloadgitlab-ce-f8c3a58a54d622193a0cf15777a0d0631289278c.tar.gz
Avoid Gitaly N+1 calls by caching tag_names
Diffstat (limited to 'spec/controllers/projects/pipeline_schedules_controller_spec.rb')
-rw-r--r--spec/controllers/projects/pipeline_schedules_controller_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/projects/pipeline_schedules_controller_spec.rb b/spec/controllers/projects/pipeline_schedules_controller_spec.rb
index debc20ee467..8888573e882 100644
--- a/spec/controllers/projects/pipeline_schedules_controller_spec.rb
+++ b/spec/controllers/projects/pipeline_schedules_controller_spec.rb
@@ -7,6 +7,8 @@ describe Projects::PipelineSchedulesController do
set(:pipeline_schedule) { create(:ci_pipeline_schedule, project: project) }
describe 'GET #index' do
+ render_views
+
let(:scope) { nil }
let!(:inactive_pipeline_schedule) do
create(:ci_pipeline_schedule, :inactive, project: project)