From c5b415bf0b611323f4ada2957f73a59466f6e863 Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Tue, 17 Dec 2024 11:12:41 -0600 Subject: [PATCH] Additional cleanup --- spec/classes/mate_spec.rb | 55 ++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/spec/classes/mate_spec.rb b/spec/classes/mate_spec.rb index 0b1022c..eaa753b 100644 --- a/spec/classes/mate_spec.rb +++ b/spec/classes/mate_spec.rb @@ -26,33 +26,34 @@ it { is_expected.to contain_package(pkg).with_ensure('installed') } end - it { - is_expected.to create_dconf__settings('MATE dconf settings: simp_mate').with({ - ensure: 'present', - profile: 'simp_mate', - settings_hash: { - 'org/mate/media-handling' => { - 'automount' => { 'value' => false }, - 'automount-open' => { 'value' => false }, - 'autorun-never' => { 'value' => true } - }, - 'org/mate/SettingsDaemon/plugins/media-keys' => { - 'logout' => { 'value' => "''" } - }, - 'org/mate/power-manager' => { - 'button-power' => { 'value' => "'nothing'" } - }, - 'org/mate/session' => { - 'idle-delay' => { 'value' => 'uint32 900' } - }, - 'org/mate/screensaver' => { - 'idle-activation-enabled' => { 'value' => true }, - 'lock-enabled' => { 'value' => true }, - 'lock-delay' => { 'value' => 0 } - } - } - }) - } + it do + is_expected.to create_dconf__settings('MATE dconf settings: simp_mate') + .with( + ensure: 'present', + profile: 'simp_mate', + settings_hash: { + 'org/mate/media-handling' => { + 'automount' => { 'value' => false }, + 'automount-open' => { 'value' => false }, + 'autorun-never' => { 'value' => true }, + }, + 'org/mate/SettingsDaemon/plugins/media-keys' => { + 'logout' => { 'value' => "''" }, + }, + 'org/mate/power-manager' => { + 'button-power' => { 'value' => "'nothing'" }, + }, + 'org/mate/session' => { + 'idle-delay' => { 'value' => 'uint32 900' }, + }, + 'org/mate/screensaver' => { + 'idle-activation-enabled' => { 'value' => true }, + 'lock-enabled' => { 'value' => true }, + 'lock-delay' => { 'value' => 0 }, + }, + }, + ) + end end end end