Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-01-12 00:10:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-12 00:10:36 +0300
commita6c51b887647aee631ed0144b3816fe696f2321d (patch)
treeff0a89cd20bf089ada731974b85af5d3c9da7a70 /spec/support
parentdcacb5daf7941dd2be05e6f688027baae92a6c81 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared_examples/models/packages/debian/distribution_shared_examples.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/shared_examples/models/packages/debian/distribution_shared_examples.rb b/spec/support/shared_examples/models/packages/debian/distribution_shared_examples.rb
index f3dd0b1e374..fcb537c4f17 100644
--- a/spec/support/shared_examples/models/packages/debian/distribution_shared_examples.rb
+++ b/spec/support/shared_examples/models/packages/debian/distribution_shared_examples.rb
@@ -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