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
beb77711
Commit
beb77711
authored
Jan 11, 2021
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Use match_array instead of eq when comparing arrays
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
1ee22091
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/support/shared_examples/models/packages/debian/distribution_shared_examples.rb
...es/models/packages/debian/distribution_shared_examples.rb
+3
-3
No files found.
spec/support/shared_examples/models/packages/debian/distribution_shared_examples.rb
View file @
beb77711
...
...
@@ -145,7 +145,7 @@ RSpec.shared_examples 'Debian Distribution' do |factory, container, can_freeze|
subject
{
described_class
.
with_container
(
distribution_with_suite
.
container
)
}
it
'does not return other distributions'
do
expect
(
subject
.
to_a
).
to
eq
([
distribution_with_suite
,
distribution
,
distribution_with_same_container
])
expect
(
subject
).
to
match_array
([
distribution_with_suite
,
distribution
,
distribution_with_same_container
])
end
end
...
...
@@ -153,7 +153,7 @@ RSpec.shared_examples 'Debian Distribution' do |factory, container, can_freeze|
subject
{
described_class
.
with_codename
(
distribution_with_suite
.
codename
)
}
it
'does not return other distributions'
do
expect
(
subject
.
to_a
).
to
eq
([
distribution_with_suite
,
distribution_with_same_codename
])
expect
(
subject
).
to
match_array
([
distribution_with_suite
,
distribution_with_same_codename
])
end
end
...
...
@@ -161,7 +161,7 @@ RSpec.shared_examples 'Debian Distribution' do |factory, container, can_freeze|
subject
{
described_class
.
with_suite
(
distribution_with_suite
.
suite
)
}
it
'does not return other distributions'
do
expect
(
subject
.
to_a
).
to
eq
([
distribution_with_suite
,
distribution_with_same_suite
])
expect
(
subject
).
to
match_array
([
distribution_with_suite
,
distribution_with_same_suite
])
end
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