diff options
author | Bryan Jen <bryan.jen@gmail.com> | 2015-07-30 13:34:26 -0700 |
---|---|---|
committer | Bryan Jen <bryan.jen@gmail.com> | 2015-07-30 13:34:26 -0700 |
commit | ebf73482e55c827bcb46b7d6b479ae7afd3628af (patch) | |
tree | 0cbc3b9ca06e8057c220131ef5d06d95ae29c139 /spec/unit/puppet/type | |
parent | 41a7297cb73e48a9548d7d0137f2ffe4108f248a (diff) | |
parent | 35e92645f727f02ef9ace8948154079bc0fff05a (diff) | |
download | puppet-stdlib-ebf73482e55c827bcb46b7d6b479ae7afd3628af.tar.gz puppet-stdlib-ebf73482e55c827bcb46b7d6b479ae7afd3628af.tar.bz2 |
Merge pull request #494 from CENGN/fix/master/file_line_replace
[#puppethack] Adding replace attribute to file_line
Diffstat (limited to 'spec/unit/puppet/type')
-rwxr-xr-x | spec/unit/puppet/type/file_line_spec.rb | 3 |
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 |