]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
escape more braces properly
authorRyan Tandy <rtandy@sd63.bc.ca>
Thu, 21 Nov 2013 17:36:41 +0000 (09:36 -0800)
committerRyan Tandy <rtandy@sd63.bc.ca>
Thu, 21 Nov 2013 17:37:11 +0000 (09:37 -0800)
Fixes a couple of rspec regex warnings.

spec/classes/unattended_upgrades_spec.rb

index 8abc603251b62722634c6260f310f4c1f079319d..e83c6e4c3096d3a47c6d2c0844e353a930118188 100644 (file)
@@ -26,7 +26,7 @@ describe 'apt::unattended_upgrades', :type => :class do
   describe "origins" do
     describe "with param defaults" do
       let(:params) {{ }}
-      it { should contain_file(file_unattended).with_content(/^Unattended-Upgrade::Allowed-Origins \{\n\t"\${distro_id}:\${distro_codename}-security";\n\};$/) }
+      it { should contain_file(file_unattended).with_content(/^Unattended-Upgrade::Allowed-Origins \{\n\t"\$\{distro_id\}:\$\{distro_codename\}-security";\n\};$/) }
     end
 
     describe "with origins => ['ubuntu:precise-security']" do