diff options
author | Małgorzata Ksionek <mksionek@gitlab.com> | 2019-06-04 15:07:17 +0200 |
---|---|---|
committer | Małgorzata Ksionek <mksionek@gitlab.com> | 2019-06-14 13:26:27 +0200 |
commit | 1291f4c40de7614a569b137e2878c8eae9c946aa (patch) | |
tree | 16beb29d4f71edd4dfdcb2aa15abdc6decd7d050 | |
parent | f3b36842bcd84b7b68b82f2c32638c3fee449e6e (diff) | |
download | gitlab-ce-1291f4c40de7614a569b137e2878c8eae9c946aa.tar.gz |
Fix rubocop offences
-rw-r--r-- | lib/gitlab/cycle_analytics/test_helper.rb | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/cycle_analytics/events_spec.rb | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lib/gitlab/cycle_analytics/test_helper.rb b/lib/gitlab/cycle_analytics/test_helper.rb index 60e80ec8958..287b5fc5cbd 100644 --- a/lib/gitlab/cycle_analytics/test_helper.rb +++ b/lib/gitlab/cycle_analytics/test_helper.rb @@ -1,6 +1,9 @@ +# frozen_string_literal: true + module Gitlab module CycleAnalytics module TestHelper + # rubocop:disable Gitlab/ModuleWithInstanceVariables def stage_query(project_ids) if @options[:branch] super(project_ids).where(build_table[:ref].eq(@options[:branch])) @@ -8,6 +11,7 @@ module Gitlab super(project_ids) end end + # rubocop:enable Gitlab/ModuleWithInstanceVariables end end end diff --git a/spec/lib/gitlab/cycle_analytics/events_spec.rb b/spec/lib/gitlab/cycle_analytics/events_spec.rb index f0c5573b462..f8b103c0fab 100644 --- a/spec/lib/gitlab/cycle_analytics/events_spec.rb +++ b/spec/lib/gitlab/cycle_analytics/events_spec.rb @@ -135,11 +135,11 @@ describe 'cycle analytics events' do let!(:pipeline) do create(:ci_pipeline, - ref: merge_request.source_branch, - sha: merge_request.diff_head_sha, - project: project, - head_pipeline_of: merge_request) - end + ref: merge_request.source_branch, + sha: merge_request.diff_head_sha, + project: project, + head_pipeline_of: merge_request) + end before do create(:ci_build, :success, pipeline: pipeline, author: user) |