Commit 67cbf048 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rs-project-finder-spec-mysql' into 'master'

Use `match_array` rather than `eq` in ProjectsFinder spec

Closes #35489

See merge request !13052
parents f81ed493 f9bb6cce
...@@ -31,11 +31,11 @@ describe Admin::ProjectsFinder do ...@@ -31,11 +31,11 @@ describe Admin::ProjectsFinder do
context 'without a user' do context 'without a user' do
let(:current_user) { nil } let(:current_user) { nil }
it { is_expected.to eq([shared_project, public_project, internal_project, private_project]) } it { is_expected.to match_array([shared_project, public_project, internal_project, private_project]) }
end end
context 'with a user' do context 'with a user' do
it { is_expected.to eq([shared_project, public_project, internal_project, private_project]) } it { is_expected.to match_array([shared_project, public_project, internal_project, private_project]) }
end end
context 'filter by namespace_id' do context 'filter by namespace_id' do
...@@ -54,7 +54,7 @@ describe Admin::ProjectsFinder do ...@@ -54,7 +54,7 @@ describe Admin::ProjectsFinder do
context 'private' do context 'private' do
let(:params) { { visibility_level: Gitlab::VisibilityLevel::PRIVATE } } let(:params) { { visibility_level: Gitlab::VisibilityLevel::PRIVATE } }
it { is_expected.to eq([shared_project, private_project]) } it { is_expected.to match_array([shared_project, private_project]) }
end end
context 'internal' do context 'internal' do
...@@ -124,7 +124,7 @@ describe Admin::ProjectsFinder do ...@@ -124,7 +124,7 @@ describe Admin::ProjectsFinder do
context 'filter by name' do context 'filter by name' do
let(:params) { { name: 'C' } } let(:params) { { name: 'C' } }
it { is_expected.to eq([shared_project, public_project, private_project]) } it { is_expected.to match_array([shared_project, public_project, private_project]) }
end end
context 'sorting' do context 'sorting' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment