diff options
author | Dominic Cleal <dcleal@redhat.com> | 2015-08-04 09:59:53 +0100 |
---|---|---|
committer | Dominic Cleal <dcleal@redhat.com> | 2015-08-04 09:59:53 +0100 |
commit | a7adcda803abe82e6a16e2410c10d58abedbd82d (patch) | |
tree | e4bdbfb53098c64a2fcc10089c2b5e6dd0f8675c /spec/unit/puppet/type | |
parent | e815da59620c4fe7ae3e612b99ef20e8924f8f23 (diff) | |
download | puppet-stdlib-a7adcda803abe82e6a16e2410c10d58abedbd82d.tar.gz puppet-stdlib-a7adcda803abe82e6a16e2410c10d58abedbd82d.tar.bz2 |
(MODULES-2316) Change file_type boolean parameter to symbols
Puppet's boolean parameter type is only available in Puppet 3.3 and
higher, so change file_type's new "replace" parameter to a regular
parameter with true and false as possible values. This matches the
existing "multiple" parameter.
Diffstat (limited to 'spec/unit/puppet/type')
-rwxr-xr-x | spec/unit/puppet/type/file_line_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/puppet/type/file_line_spec.rb b/spec/unit/puppet/type/file_line_spec.rb index 58c88e3..f1430f2 100755 --- a/spec/unit/puppet/type/file_line_spec.rb +++ b/spec/unit/puppet/type/file_line_spec.rb @@ -50,7 +50,7 @@ describe Puppet::Type.type(:file_line) do expect(file_line[:ensure]).to eq :present end it 'should default to replace => true' do - expect(file_line[:replace]).to eq true + expect(file_line[:replace]).to eq :true end it "should autorequire the file it manages" do |