summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
418820a)
Signed-off-by: Vincent Deygas <Vincent.Deygas@rewardgateway.com>
},
'pref' => {
'path' => $preferences_d,
},
'pref' => {
'path' => $preferences_d,
},
'list' => {
'path' => $sources_list_d,
},
'list' => {
'path' => $sources_list_d,
validate_string($content)
}
validate_string($content)
}
- if $setting_type == 'list' {
+ if ($setting_type == 'list') or ($setting_type == 'pref') {
$_priority = ''
} else {
$_priority = $priority
$_priority = ''
} else {
$_priority = $priority
context 'with title=pref-teddybear' do
let(:title) { 'pref-teddybear' }
let(:params) { default_params }
context 'with title=pref-teddybear' do
let(:title) { 'pref-teddybear' }
let(:params) { default_params }
- it { is_expected.to contain_file('/etc/apt/preferences.d/50teddybear').that_notifies('Class[Apt::Update]') }
+ it { is_expected.to contain_file('/etc/apt/preferences.d/teddybear.pref').that_notifies('Class[Apt::Update]') }
end
context 'with title=list-teddybear' do
end
context 'with title=list-teddybear' do