diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb index 8dd813d..1aa0e33 100644 --- a/spec/classes/init_spec.rb +++ b/spec/classes/init_spec.rb @@ -134,7 +134,7 @@ context 'with default parameters' do it { is_expected.to create_class('aide') } - if os_facts[:operatingsystemmajrelease] < '8' + if os_facts[:os][:release][:major] < '8' it { is_expected.to contain_concat__fragment('aide.conf').with_content(<<~EOM @@define DBDIR /var/lib/aide @@define LOGDIR /var/log/aide