Merge pull request #188 from sd63/fix_regex_warning

escape more braces properly
This commit is contained in:
Ashley Penney 2013-12-03 14:54:25 -08:00
commit 9d32257f85

View 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