We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9f4d6 commit 48f92feCopy full SHA for 48f92fe
spec/defines/config_spec.rb
@@ -104,6 +104,29 @@
104
end
105
106
107
+
108
+ context 'when show_diff is disabled in yum::show_diff' do
109
+ let(:title) { 'assumeyes' }
110
+ let(:params) { { ensure: '1, 2' } }
111
+ let(:pre_condition) { 'class { yum : show_diff => false }' }
112
113
+ it { is_expected.to compile.with_all_deps }
114
115
+ it 'contains an Augeas resource with the correct changes' do
116
+ case pkgmgr
117
+ when 'yum'
118
+ is_expected.to contain_augeas("yum.conf_#{title}").with(
119
+ changes: "set assumeyes '1, 2'",
120
+ show_diff: false
121
+ )
122
+ else
123
+ is_expected.to contain_augeas("dnf.conf_#{title}").with(
124
125
126
127
+ end
128
129
130
131
132
0 commit comments