X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fdefines%2Fconf_spec.rb;h=3158c16ef41cd842f6f73de870b560343766165e;hb=c5259f83ad20d120d502d8541c75f4ee6021fec8;hp=7f75fd93600a46b4cf3c2d62b60b294492541592;hpb=630580d1ce3c609865e31598198e7c55dda9a6ef;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/conf_spec.rb b/spec/defines/conf_spec.rb index 7f75fd9..3158c16 100644 --- a/spec/defines/conf_spec.rb +++ b/spec/defines/conf_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe 'apt::conf', type: :define do let :pre_condition do @@ -9,7 +11,6 @@ describe 'apt::conf', type: :define do lsbdistid: 'Debian', osfamily: 'Debian', lsbdistcodename: 'jessie', - puppetversion: Puppet.version, } end let :title do @@ -35,8 +36,7 @@ describe 'apt::conf', type: :define do is_expected.to contain_file(filename).with('ensure' => 'present', 'content' => %r{Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;}, 'owner' => 'root', - 'group' => 'root', - 'mode' => '0644') + 'group' => 'root') } context 'with notify_update = true (default)' do @@ -83,8 +83,7 @@ describe 'apt::conf', type: :define do it { is_expected.to contain_file(filename).with('ensure' => 'absent', 'owner' => 'root', - 'group' => 'root', - 'mode' => '0644') + 'group' => 'root') } end end