Skip to content

Commit

Permalink
Additional cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
silug committed Dec 17, 2024
1 parent 914fbb0 commit c5b415b
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions spec/classes/mate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5b415b

Please sign in to comment.