it { is_expected.to contain_package('nginx').with(ensure: 'present') }
I am wondering how I could go about testing this, adding to my spec/classes/install_spec.rb. for the apt::source in particular. I haven't found anything on this yet.
I scaffolded my classes and spec/ structure using PDK.
it { is_expected.to contain_apt__source('nginx').with( ... }