diff options
author | Morgan Haskel <morgan@puppetlabs.com> | 2014-12-16 15:07:02 -0800 |
---|---|---|
committer | Morgan Haskel <morgan@puppetlabs.com> | 2014-12-16 15:07:02 -0800 |
commit | 80f09623b63cf6946b5913b629911e2c49b5d1dd (patch) | |
tree | 17c110fe8ec52b636a91a65acb4c13889295f62f /spec/unit | |
parent | 0e84232503d72cec0950f9e7fab11bc93cce116d (diff) | |
parent | c6c203fca8da81fea96659bfe9618bb31965b837 (diff) |
Merge pull request #387 from hunner/remove_match_line
Remove line match validation
Diffstat (limited to 'spec/unit')
-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 { |