diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-24 19:25:02 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-24 19:25:02 +0300 |
commit | 67cbf04884ded7f8d6dda86f4d07d3e72f0740f6 (patch) | |
tree | f2316888919e431603508308b04f48eb05891857 | |
parent | f81ed493e1f02e5a197df3e2df9c5e42cb09e7ff (diff) | |
parent | f9bb6ccea87cf9420a524da53bb11c8a6b119154 (diff) |
Merge branch 'rs-project-finder-spec-mysql' into 'master'
Use `match_array` rather than `eq` in ProjectsFinder spec
Closes #35489
See merge request !13052
-rw-r--r-- | spec/finders/admin/projects_finder_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/finders/admin/projects_finder_spec.rb b/spec/finders/admin/projects_finder_spec.rb index 73038a4c8d6..296d6c51d04 100644 --- a/spec/finders/admin/projects_finder_spec.rb +++ b/spec/finders/admin/projects_finder_spec.rb @@ -31,11 +31,11 @@ describe Admin::ProjectsFinder do context 'without a user' do 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 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 context 'filter by namespace_id' do @@ -54,7 +54,7 @@ describe Admin::ProjectsFinder do context 'private' do 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 context 'internal' do @@ -124,7 +124,7 @@ describe Admin::ProjectsFinder do context 'filter by name' do 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 context 'sorting' do |