diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-12-18 15:55:33 -0800 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-12-18 15:55:33 -0800 |
commit | 1ae0a1070710fdb3e2f377a42109b231c3ccc103 (patch) | |
tree | c87a7d62ac8e18eed7f3b2223f789a49244f6708 /spec/unit/puppet | |
parent | be46f0ea328c7cecfcaeef4696e289bb6adfa124 (diff) | |
parent | 49acade831d06182bb63a0c8042341a07db2e5b0 (diff) |
Merge pull request #388 from mhaskel/merge_4.5.x_into_master
Merge 4.5.x into master
Diffstat (limited to 'spec/unit/puppet')
-rwxr-xr-x | spec/unit/puppet/type/file_line_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/puppet/type/file_line_spec.rb b/spec/unit/puppet/type/file_line_spec.rb index 9ef49ef..410d0bf 100755 --- a/spec/unit/puppet/type/file_line_spec.rb +++ b/spec/unit/puppet/type/file_line_spec.rb @@ -15,14 +15,14 @@ describe Puppet::Type.type(:file_line) do file_line[:match] = '^foo.*$' expect(file_line[:match]).to eq('^foo.*$') end - it 'should not accept a match regex that does not match the specified line' do + it 'should accept a match regex that does not match the specified line' do expect { Puppet::Type.type(:file_line).new( :name => 'foo', :path => '/my/path', :line => 'foo=bar', :match => '^bar=blah$' - )}.to raise_error(Puppet::Error, /the value must be a regex that matches/) + )}.not_to raise_error end it 'should accept a match regex that does match the specified line' do expect { |