Commit be870760 authored by Ahmad Sherif's avatar Ahmad Sherif

Add a spec for ProjectsFinder project_ids_relation option

Follow-up 1003454c
parent e93de606
......@@ -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
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