summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2014-12-16 17:32:40 -0800
committerMorgan Haskel <morgan@puppetlabs.com>2014-12-16 17:32:40 -0800
commit49acade831d06182bb63a0c8042341a07db2e5b0 (patch)
tree17c110fe8ec52b636a91a65acb4c13889295f62f /spec
parent6237446582d71aa722b71ad8873f63c0662b20f7 (diff)
parent80f09623b63cf6946b5913b629911e2c49b5d1dd (diff)
Merge remote-tracking branch 'upstream/4.5.x' into merge_4.5.x_into_master
Conflicts: metadata.json
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/puppet/type/file_line_spec.rb4
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 {