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
06c97c26
Commit
06c97c26
authored
Oct 06, 2021
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change eq to match_array
parent
52eda263
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
spec/finders/ci/pipelines_for_merge_request_finder_spec.rb
spec/finders/ci/pipelines_for_merge_request_finder_spec.rb
+5
-7
No files found.
spec/finders/ci/pipelines_for_merge_request_finder_spec.rb
View file @
06c97c26
...
...
@@ -44,7 +44,7 @@ RSpec.describe Ci::PipelinesForMergeRequestFinder do
let
(
:actor
)
{
developer_in_both
}
it
'returns all pipelines'
do
is_expected
.
to
eq
([
pipeline_in_fork
,
pipeline_in_parent
])
is_expected
.
to
match_array
([
pipeline_in_fork
,
pipeline_in_parent
])
end
end
...
...
@@ -52,7 +52,7 @@ RSpec.describe Ci::PipelinesForMergeRequestFinder do
let
(
:actor
)
{
reporter_in_parent_and_developer_in_fork
}
it
'returns all pipelines'
do
is_expected
.
to
eq
([
pipeline_in_fork
,
pipeline_in_parent
])
is_expected
.
to
match_array
([
pipeline_in_fork
,
pipeline_in_parent
])
end
end
...
...
@@ -60,7 +60,7 @@ RSpec.describe Ci::PipelinesForMergeRequestFinder do
let
(
:actor
)
{
developer_in_parent
}
it
'returns pipelines in parent'
do
is_expected
.
to
eq
([
pipeline_in_parent
])
is_expected
.
to
match_array
([
pipeline_in_parent
])
end
end
...
...
@@ -68,7 +68,7 @@ RSpec.describe Ci::PipelinesForMergeRequestFinder do
let
(
:actor
)
{
developer_in_fork
}
it
'returns pipelines in fork'
do
is_expected
.
to
eq
([
pipeline_in_fork
])
is_expected
.
to
match_array
([
pipeline_in_fork
])
end
end
...
...
@@ -195,9 +195,7 @@ RSpec.describe Ci::PipelinesForMergeRequestFinder do
branch_pipeline
])
expect
(
described_class
.
new
(
merge_request_2
,
nil
).
all
)
.
to
eq
([
detached_merge_request_pipeline_2
,
branch_pipeline_2
,
branch_pipeline
])
.
to
match_array
([
detached_merge_request_pipeline_2
,
branch_pipeline_2
,
branch_pipeline
])
end
end
...
...
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