diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-07-24 11:20:52 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-07-24 11:20:52 -0400 |
commit | f9bb6ccea87cf9420a524da53bb11c8a6b119154 (patch) | |
tree | bc72832a9695ae0be8147f0c32624fc54136556e | |
parent | c2c8d7ffabaeb6514f7bf15fb5330c8402d80333 (diff) | |
download | gitlab-ce-f9bb6ccea87cf9420a524da53bb11c8a6b119154.tar.gz |
Use `match_array` rather than `eq` in ProjectsFinder specrs-project-finder-spec-mysql
-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 |