describe 'duplication' do
context 'two apt::key resources for same key, different titles' do
let :pre_condition do
- "apt::key { 'duplicate': key => #{title}, }"
+ "apt::key { 'duplicate': key => '#{title}', }"
end
it 'contains two apt::key resources' do
context 'two apt::key resources, different ensure' do
let :pre_condition do
- "apt::key { 'duplicate': key => #{title}, ensure => 'absent', }"
+ "apt::key { 'duplicate': key => '#{title}', ensure => 'absent', }"
end
it 'informs the user of the impossibility' do
expect { subject }.to raise_error(/already ensured as absent/)