# How can I rspec test a resource collector?

Hello, I have a yumrepo resource for which I use collector to collect all the repos and add an ordering method applying to all repos. Something like:

File['yum_repos_dir] -> Yumrepo <||> ~> Exec['clean-yum-metadata']


Now I want to setup a rspec test that not only tests this irchestration with a single case (a single repo) but for any repo in general, so I should 'translate' the collector to the test. Something like:

describe '-> orchestration validation' do
it { should contain_ryumrepo(<||>).that_requires('File[yum_repos_dir]'