Revision a72a1bb4
Added by Greg Sutcliffe over 10 years ago
spec/defines/foreman_plugin_spec.rb | ||
---|---|---|
})
|
||
end
|
||
end
|
||
|
||
context 'when handling underscores on Red Hat' do
|
||
let :params do {
|
||
:package => 'my_fun_plugin',
|
||
} end
|
||
|
||
it 'should use underscores' do
|
||
should contain_package('my_fun_plugin').with({
|
||
:ensure => 'installed',
|
||
})
|
||
end
|
||
end
|
||
|
||
context 'when handling underscores on Debian' do
|
||
let :facts do {
|
||
:osfamily => 'Debian',
|
||
} end
|
||
|
||
let :params do {
|
||
:package => 'my_fun_plugin',
|
||
} end
|
||
|
||
it 'should use hyphens' do
|
||
should contain_package('my-fun-plugin').with({
|
||
:ensure => 'installed',
|
||
})
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Refs #3308 Handle underscores vs hyphens with regsubst