diff --git a/spec/classes/redis_spec.rb b/spec/classes/redis_spec.rb index 5221a19b..a4ccd6d8 100644 --- a/spec/classes/redis_spec.rb +++ b/spec/classes/redis_spec.rb @@ -1707,7 +1707,7 @@ class { 'redis': } end - it { is_expected.not_to contain_file(config_file_orig).with('content' => %r{^rdb-save-incremental-fsync}) } + it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } end describe 'test systemd service timeouts' do