summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/type
diff options
context:
space:
mode:
authorRaymond Maika <rmaika@patientway.com>2015-07-30 14:05:39 -0400
committerRaymond Maika <raymond.maika@cengn.ca>2015-07-30 14:55:32 -0400
commit35e92645f727f02ef9ace8948154079bc0fff05a (patch)
tree1d9c42cc6ea5a89b159cdd1329aedd7c502bb699 /spec/unit/puppet/type
parent4d889cbcb6f5eb2358eed940f2d40d1f73cc8f51 (diff)
downloadpuppet-stdlib-35e92645f727f02ef9ace8948154079bc0fff05a.tar.gz
puppet-stdlib-35e92645f727f02ef9ace8948154079bc0fff05a.tar.bz2
(MODULES-2024) Adding replace attribute to file_line
Diffstat (limited to 'spec/unit/puppet/type')
-rwxr-xr-xspec/unit/puppet/type/file_line_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/puppet/type/file_line_spec.rb b/spec/unit/puppet/type/file_line_spec.rb
index 410d0bf..58c88e3 100755
--- a/spec/unit/puppet/type/file_line_spec.rb
+++ b/spec/unit/puppet/type/file_line_spec.rb
@@ -49,6 +49,9 @@ describe Puppet::Type.type(:file_line) do
it 'should default to ensure => present' do
expect(file_line[:ensure]).to eq :present
end
+ it 'should default to replace => true' do
+ expect(file_line[:replace]).to eq true
+ end
it "should autorequire the file it manages" do
catalog = Puppet::Resource::Catalog.new