diff options
-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 |