diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2016-08-12 17:30:44 +0200 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2016-08-15 12:49:31 +0200 |
commit | be870760d5490a394e3f3e1b7b3fadb8424c38a8 (patch) | |
tree | d96b348dd47f180d67669523d21244616066578d | |
parent | e93de6066b8a69bc741fcdf3ef3113dd9b187878 (diff) | |
download | gitlab-ce-be870760d5490a394e3f3e1b7b3fadb8424c38a8.tar.gz |
Add a spec for ProjectsFinder project_ids_relation option
Follow-up 1003454c
-rw-r--r-- | spec/finders/projects_finder_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/finders/projects_finder_spec.rb b/spec/finders/projects_finder_spec.rb index e4b4b2d9b20..7a3a74335e8 100644 --- a/spec/finders/projects_finder_spec.rb +++ b/spec/finders/projects_finder_spec.rb @@ -46,5 +46,13 @@ describe ProjectsFinder do end end end + + describe 'with project_ids_relation' do + let(:project_ids_relation) { Project.where(id: internal_project.id) } + + subject { finder.execute(user, project_ids_relation) } + + it { is_expected.to eq([internal_project]) } + end end end |