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
6625816c
Commit
6625816c
authored
Feb 13, 2020
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace set to let_it_be in spec/services
Get rids of `set` in specs
parent
a85f6ffe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
spec/services/ci/create_pipeline_service/parent_child_pipeline_spec.rb
.../ci/create_pipeline_service/parent_child_pipeline_spec.rb
+2
-2
spec/services/ci/pipeline_processing/atomic_processing_service/status_collection_spec.rb
...ssing/atomic_processing_service/status_collection_spec.rb
+6
-6
spec/services/metrics/dashboard/clone_dashboard_service_spec.rb
...ervices/metrics/dashboard/clone_dashboard_service_spec.rb
+3
-3
No files found.
spec/services/ci/create_pipeline_service/parent_child_pipeline_spec.rb
View file @
6625816c
...
...
@@ -3,8 +3,8 @@
require
'spec_helper'
describe
Ci
::
CreatePipelineService
,
'#execute'
do
set
(
:project
)
{
create
(
:project
,
:repository
)
}
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:ref_name
)
{
'master'
}
let
(
:service
)
do
...
...
spec/services/ci/pipeline_processing/atomic_processing_service/status_collection_spec.rb
View file @
6625816c
...
...
@@ -5,12 +5,12 @@ require 'spec_helper'
describe
Ci
::
PipelineProcessing
::
AtomicProcessingService
::
StatusCollection
do
using
RSpec
::
Parameterized
::
TableSyntax
set
(
:pipeline
)
{
create
(
:ci_pipeline
)
}
set
(
:build_a
)
{
create
(
:ci_build
,
:success
,
name:
'build-a'
,
stage:
'build'
,
stage_idx:
0
,
pipeline:
pipeline
)
}
set
(
:build_b
)
{
create
(
:ci_build
,
:failed
,
name:
'build-b'
,
stage:
'build'
,
stage_idx:
0
,
pipeline:
pipeline
)
}
set
(
:test_a
)
{
create
(
:ci_build
,
:running
,
name:
'test-a'
,
stage:
'test'
,
stage_idx:
1
,
pipeline:
pipeline
)
}
set
(
:test_b
)
{
create
(
:ci_build
,
:pending
,
name:
'test-b'
,
stage:
'test'
,
stage_idx:
1
,
pipeline:
pipeline
)
}
set
(
:deploy
)
{
create
(
:ci_build
,
:created
,
name:
'deploy'
,
stage:
'deploy'
,
stage_idx:
2
,
pipeline:
pipeline
)
}
let_it_be
(
:pipeline
)
{
create
(
:ci_pipeline
)
}
let_it_be
(
:build_a
)
{
create
(
:ci_build
,
:success
,
name:
'build-a'
,
stage:
'build'
,
stage_idx:
0
,
pipeline:
pipeline
)
}
let_it_be
(
:build_b
)
{
create
(
:ci_build
,
:failed
,
name:
'build-b'
,
stage:
'build'
,
stage_idx:
0
,
pipeline:
pipeline
)
}
let_it_be
(
:test_a
)
{
create
(
:ci_build
,
:running
,
name:
'test-a'
,
stage:
'test'
,
stage_idx:
1
,
pipeline:
pipeline
)
}
let_it_be
(
:test_b
)
{
create
(
:ci_build
,
:pending
,
name:
'test-b'
,
stage:
'test'
,
stage_idx:
1
,
pipeline:
pipeline
)
}
let_it_be
(
:deploy
)
{
create
(
:ci_build
,
:created
,
name:
'deploy'
,
stage:
'deploy'
,
stage_idx:
2
,
pipeline:
pipeline
)
}
let
(
:collection
)
{
described_class
.
new
(
pipeline
)
}
...
...
spec/services/metrics/dashboard/clone_dashboard_service_spec.rb
View file @
6625816c
...
...
@@ -7,9 +7,9 @@ describe Metrics::Dashboard::CloneDashboardService, :use_clean_rails_memory_stor
STAGES
=
::
Gitlab
::
Metrics
::
Dashboard
::
Stages
set
(
:user
)
{
create
(
:user
)
}
set
(
:project
)
{
create
(
:project
,
:repository
)
}
set
(
:environment
)
{
create
(
:environment
,
project:
project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:environment
)
{
create
(
:environment
,
project:
project
)
}
describe
'#execute'
do
subject
(
:service_call
)
{
described_class
.
new
(
project
,
user
,
params
).
execute
}
...
...
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