let(:title) { 'ppa:needs/substitution' }
it { is_expected.not_to contain_package('python-software-properties') }
+
it {
is_expected.to contain_exec('add-apt-repository-ppa:needs/substitution')
.that_notifies('Class[Apt::Update]')
let(:title) { 'ppa:needs/substitution' }
it { is_expected.to contain_package('software-properties-common') }
+
it {
is_expected.to contain_exec('add-apt-repository-ppa:needs/substitution')
.that_notifies('Class[Apt::Update]')
let(:title) { 'ppa:needs/substitution' }
it { is_expected.not_to contain_package('python-software-properties') }
+
it {
is_expected.to contain_exec('add-apt-repository-ppa:needs/substitution')
.that_notifies('Class[Apt::Update]')
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_package('software-properties-common') }
+
it {
is_expected.to contain_exec('add-apt-repository-ppa:user/foo')
.that_notifies('Class[Apt::Update]')
let(:title) { 'ppa:user/foo' }
it { is_expected.to contain_package('software-properties-common') }
+
it {
is_expected.to contain_exec('add-apt-repository-ppa:user/foo')
.that_notifies('Class[Apt::Update]')
let(:title) { 'ppa:user/foo' }
it { is_expected.to contain_package('software-properties-common') }
+
it {
is_expected.to contain_exec('add-apt-repository-ppa:user/foo')
.that_notifies('Class[Apt::Update]')
let(:title) { 'ppa:user/foo' }
it { is_expected.to contain_package('software-properties-common') }
+
it {
is_expected.to contain_exec('add-apt-repository-ppa:user/foo')
.that_notifies('Class[Apt::Update]')