Merge pull request #421 from cmurphy/future
Update spec tests for future parser
This commit is contained in:
commit
6166de1f4a
1 changed files with 2 additions and 2 deletions
|
@ -276,7 +276,7 @@ describe 'apt::key', :type => :define do
|
||||||
describe 'duplication' do
|
describe 'duplication' do
|
||||||
context 'two apt::key resources for same key, different titles' do
|
context 'two apt::key resources for same key, different titles' do
|
||||||
let :pre_condition do
|
let :pre_condition do
|
||||||
"apt::key { 'duplicate': key => #{title}, }"
|
"apt::key { 'duplicate': key => '#{title}', }"
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'contains two apt::key resources' do
|
it 'contains two apt::key resources' do
|
||||||
|
@ -305,7 +305,7 @@ describe 'apt::key', :type => :define do
|
||||||
|
|
||||||
context 'two apt::key resources, different ensure' do
|
context 'two apt::key resources, different ensure' do
|
||||||
let :pre_condition do
|
let :pre_condition do
|
||||||
"apt::key { 'duplicate': key => #{title}, ensure => 'absent', }"
|
"apt::key { 'duplicate': key => '#{title}', ensure => 'absent', }"
|
||||||
end
|
end
|
||||||
it 'informs the user of the impossibility' do
|
it 'informs the user of the impossibility' do
|
||||||
expect { subject }.to raise_error(/already ensured as absent/)
|
expect { subject }.to raise_error(/already ensured as absent/)
|
||||||
|
|
Loading…
Reference in a new issue