From: Colleen Murphy Date: Thu, 12 Feb 2015 00:38:32 +0000 (-0800) Subject: Update spec tests for future parser X-Git-Tag: 1.8.0~13^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=e05810d03263759e7f831a8d7b2efe8492038b62;p=puppet-modules%2Fpuppetlabs-apt.git Update spec tests for future parser Strings must be quoted in the future parser. --- diff --git a/spec/defines/key_spec.rb b/spec/defines/key_spec.rb index b09dc5b..7ac1d28 100644 --- a/spec/defines/key_spec.rb +++ b/spec/defines/key_spec.rb @@ -276,7 +276,7 @@ describe 'apt::key', :type => :define do 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 @@ -305,7 +305,7 @@ describe 'apt::key', :type => :define 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/)