Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b412e5b9
Commit
b412e5b9
authored
Apr 06, 2021
by
Huzaifa Iftikhar
Committed by
Bob Van Landuyt
Apr 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EmptyLineAfterFinalLetItBe offenses in spec/models/ci
parent
2e647463
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
7 deletions
+22
-7
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-7
changelogs/unreleased/issue-325836-fix-empty-line-after-let-it-be-models-ci.yml
...issue-325836-fix-empty-line-after-let-it-be-models-ci.yml
+5
-0
spec/models/ci/artifact_blob_spec.rb
spec/models/ci/artifact_blob_spec.rb
+1
-0
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+2
-0
spec/models/ci/build_trace_chunk_spec.rb
spec/models/ci/build_trace_chunk_spec.rb
+1
-0
spec/models/ci/daily_build_group_report_result_spec.rb
spec/models/ci/daily_build_group_report_result_spec.rb
+1
-0
spec/models/ci/pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+10
-0
spec/models/ci/runner_spec.rb
spec/models/ci/runner_spec.rb
+1
-0
spec/models/ci/stage_spec.rb
spec/models/ci/stage_spec.rb
+1
-0
No files found.
.rubocop_manual_todo.yml
View file @
b412e5b9
...
...
@@ -1149,13 +1149,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
-
spec/models/blob_viewer/metrics_dashboard_yml_spec.rb
-
spec/models/chat_name_spec.rb
-
spec/models/chat_team_spec.rb
-
spec/models/ci/artifact_blob_spec.rb
-
spec/models/ci/build_spec.rb
-
spec/models/ci/build_trace_chunk_spec.rb
-
spec/models/ci/daily_build_group_report_result_spec.rb
-
spec/models/ci/pipeline_spec.rb
-
spec/models/ci/runner_spec.rb
-
spec/models/ci/stage_spec.rb
-
spec/models/clusters/kubernetes_namespace_spec.rb
-
spec/models/commit_spec.rb
-
spec/models/concerns/batch_destroy_dependent_associations_spec.rb
...
...
changelogs/unreleased/issue-325836-fix-empty-line-after-let-it-be-models-ci.yml
0 → 100644
View file @
b412e5b9
---
title
:
Fix EmptyLineAfterFinalLetItBe offenses in spec/models/ci
merge_request
:
58327
author
:
Huzaifa Iftikhar @huzaifaiftikhar
type
:
fixed
spec/models/ci/artifact_blob_spec.rb
View file @
b412e5b9
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Ci
::
ArtifactBlob
do
let_it_be
(
:project
)
{
create
(
:project
,
:public
)
}
let_it_be
(
:build
)
{
create
(
:ci_build
,
:artifacts
,
project:
project
)
}
let
(
:entry
)
{
build
.
artifacts_metadata_entry
(
'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif'
)
}
subject
{
described_class
.
new
(
entry
)
}
...
...
spec/models/ci/build_spec.rb
View file @
b412e5b9
...
...
@@ -3703,6 +3703,7 @@ RSpec.describe Ci::Build do
describe
'.matches_tag_ids'
do
let_it_be
(
:build
,
reload:
true
)
{
create
(
:ci_build
,
project:
project
,
user:
user
)
}
let
(
:tag_ids
)
{
::
ActsAsTaggableOn
::
Tag
.
named_any
(
tag_list
).
ids
}
subject
{
described_class
.
where
(
id:
build
).
matches_tag_ids
(
tag_ids
)
}
...
...
@@ -4154,6 +4155,7 @@ RSpec.describe Ci::Build do
describe
'#artifacts_metadata_entry'
do
let_it_be
(
:build
)
{
create
(
:ci_build
,
project:
project
)
}
let
(
:path
)
{
'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif'
}
around
do
|
example
|
...
...
spec/models/ci/build_trace_chunk_spec.rb
View file @
b412e5b9
...
...
@@ -6,6 +6,7 @@ RSpec.describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
include
ExclusiveLeaseHelpers
let_it_be
(
:build
)
{
create
(
:ci_build
,
:running
)
}
let
(
:chunk_index
)
{
0
}
let
(
:data_store
)
{
:redis
}
let
(
:raw_data
)
{
nil
}
...
...
spec/models/ci/daily_build_group_report_result_spec.rb
View file @
b412e5b9
...
...
@@ -86,6 +86,7 @@ RSpec.describe Ci::DailyBuildGroupReportResult do
describe
'scopes'
do
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:project
)
{
create
(
:project
,
group:
group
)
}
let
(
:recent_build_group_report_result
)
{
create
(
:ci_daily_build_group_report_result
,
project:
project
,
group:
group
)
}
let
(
:old_build_group_report_result
)
do
create
(
:ci_daily_build_group_report_result
,
date:
1
.
week
.
ago
,
project:
project
)
...
...
spec/models/ci/pipeline_spec.rb
View file @
b412e5b9
...
...
@@ -427,6 +427,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
subject
{
pipeline
.
legacy_detached_merge_request_pipeline?
}
let_it_be
(
:merge_request
)
{
create
(
:merge_request
)
}
let
(
:ref
)
{
'feature'
}
let
(
:target_sha
)
{
nil
}
...
...
@@ -832,6 +833,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
let_it_be
(
:assignees
)
{
create_list
(
:user
,
2
)
}
let_it_be
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let_it_be
(
:labels
)
{
create_list
(
:label
,
2
)
}
let
(
:merge_request
)
do
create
(
:merge_request
,
:simple
,
source_project:
project
,
...
...
@@ -1276,6 +1278,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
describe
'state machine'
do
let_it_be_with_reload
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
:created
)
}
let
(
:current
)
{
Time
.
current
.
change
(
usec:
0
)
}
let
(
:build
)
{
create_build
(
'build1'
,
queued_at:
0
)
}
let
(
:build_b
)
{
create_build
(
'build2'
,
queued_at:
0
)
}
...
...
@@ -2327,6 +2330,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
subject
{
pipeline
.
reload
.
status
}
let_it_be
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
:created
)
}
let
(
:build
)
{
create
(
:ci_build
,
:created
,
pipeline:
pipeline
,
name:
'test'
)
}
context
'on waiting for resource'
do
...
...
@@ -2690,6 +2694,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
describe
'#execute_hooks'
do
let_it_be
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
:created
)
}
let!
(
:build_a
)
{
create_build
(
'a'
,
0
)
}
let!
(
:build_b
)
{
create_build
(
'b'
,
0
)
}
...
...
@@ -3355,6 +3360,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
describe
'#build_with_artifacts_in_self_and_descendants'
do
let_it_be
(
:pipeline
)
{
create
(
:ci_pipeline
)
}
let!
(
:build
)
{
create
(
:ci_build
,
name:
'test'
,
pipeline:
pipeline
)
}
let
(
:child_pipeline
)
{
create
(
:ci_pipeline
,
child_of:
pipeline
)
}
let!
(
:child_build
)
{
create
(
:ci_build
,
:artifacts
,
name:
'test'
,
pipeline:
child_pipeline
)
}
...
...
@@ -3865,6 +3871,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
describe
'#find_stage_by_name'
do
let_it_be
(
:pipeline
)
{
create
(
:ci_pipeline
)
}
let
(
:stage_name
)
{
'test'
}
let
(
:stage
)
do
...
...
@@ -4150,6 +4157,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
subject
{
pipeline
.
base_and_ancestors
(
same_project:
same_project
)
}
let_it_be
(
:pipeline
)
{
create
(
:ci_pipeline
,
:created
)
}
let
(
:same_project
)
{
false
}
context
'when pipeline is not child nor parent'
do
...
...
@@ -4186,6 +4194,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
context
'when pipeline is a child of a child pipeline'
do
let_it_be
(
:pipeline
)
{
create
(
:ci_pipeline
,
:created
)
}
let
(
:ancestor
)
{
create
(
:ci_pipeline
)
}
let
(
:parent
)
{
create
(
:ci_pipeline
)
}
...
...
@@ -4201,6 +4210,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
context
'when pipeline is a triggered pipeline'
do
let_it_be
(
:pipeline
)
{
create
(
:ci_pipeline
,
:created
)
}
let
(
:upstream
)
{
create
(
:ci_pipeline
,
project:
create
(
:project
))
}
before
do
...
...
spec/models/ci/runner_spec.rb
View file @
b412e5b9
...
...
@@ -353,6 +353,7 @@ RSpec.describe Ci::Runner do
using
RSpec
::
Parameterized
::
TableSyntax
let_it_be
(
:pipeline
)
{
create
(
:ci_pipeline
)
}
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
let
(
:runner_project
)
{
build
.
project
}
let
(
:runner
)
{
create
(
:ci_runner
,
:project
,
projects:
[
runner_project
],
tag_list:
tag_list
,
run_untagged:
run_untagged
)
}
...
...
spec/models/ci/stage_spec.rb
View file @
b412e5b9
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Ci
::
Stage
,
:models
do
let_it_be
(
:pipeline
)
{
create
(
:ci_empty_pipeline
)
}
let
(
:stage
)
{
create
(
:ci_stage_entity
,
pipeline:
pipeline
,
project:
pipeline
.
project
)
}
it_behaves_like
'having unique enum values'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment