diff options
Diffstat (limited to 'spec/support/shared_examples/models/packages/debian')
3 files changed, 6 insertions, 6 deletions
diff --git a/spec/support/shared_examples/models/packages/debian/architecture_shared_examples.rb b/spec/support/shared_examples/models/packages/debian/architecture_shared_examples.rb index b73ff516670..fbb94b4f5c1 100644 --- a/spec/support/shared_examples/models/packages/debian/architecture_shared_examples.rb +++ b/spec/support/shared_examples/models/packages/debian/architecture_shared_examples.rb @@ -34,7 +34,7 @@ RSpec.shared_examples 'Debian Distribution Architecture' do |factory, container, subject { described_class.with_distribution(architecture.distribution) } it 'does not return other distributions' do - expect(subject.to_a).to eq([architecture, architecture_same_distribution]) + expect(subject.to_a).to match_array([architecture, architecture_same_distribution]) end end @@ -42,7 +42,7 @@ RSpec.shared_examples 'Debian Distribution Architecture' do |factory, container, subject { described_class.with_name(architecture.name) } it 'does not return other distributions' do - expect(subject.to_a).to eq([architecture, architecture_same_name]) + expect(subject.to_a).to match_array([architecture, architecture_same_name]) end end end diff --git a/spec/support/shared_examples/models/packages/debian/component_shared_examples.rb b/spec/support/shared_examples/models/packages/debian/component_shared_examples.rb index bf6fc23116c..23e76d32fb0 100644 --- a/spec/support/shared_examples/models/packages/debian/component_shared_examples.rb +++ b/spec/support/shared_examples/models/packages/debian/component_shared_examples.rb @@ -36,7 +36,7 @@ RSpec.shared_examples 'Debian Distribution Component' do |factory, container, ca subject { described_class.with_distribution(component.distribution) } it 'does not return other distributions' do - expect(subject.to_a).to eq([component, component_same_distribution]) + expect(subject.to_a).to match_array([component, component_same_distribution]) end end @@ -44,7 +44,7 @@ RSpec.shared_examples 'Debian Distribution Component' do |factory, container, ca subject { described_class.with_name(component.name) } it 'does not return other distributions' do - expect(subject.to_a).to eq([component, component_same_name]) + expect(subject.to_a).to match_array([component, component_same_name]) end end end 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 b4ec146df14..9eacacf725f 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 @@ -179,7 +179,7 @@ RSpec.shared_examples 'Debian Distribution' do |factory, container, can_freeze| subject { described_class.with_codename_or_suite(distribution_with_suite.codename) } it 'does not return other distributions' do - expect(subject.to_a).to eq([distribution_with_suite, distribution_with_same_codename, distribution_with_codename_and_suite_flipped]) + expect(subject.to_a).to contain_exactly(distribution_with_suite, distribution_with_same_codename, distribution_with_codename_and_suite_flipped) end end @@ -187,7 +187,7 @@ RSpec.shared_examples 'Debian Distribution' do |factory, container, can_freeze| subject { described_class.with_codename_or_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, distribution_with_codename_and_suite_flipped]) + expect(subject.to_a).to contain_exactly(distribution_with_suite, distribution_with_same_suite, distribution_with_codename_and_suite_flipped) end end end |