Fix rspec 3.x syntax
- Convert 'should' keyword to 'is_expected.to' Change-Id: I5d7f82e78cb94e26085a42b361c9bd6691770968 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
parent
2da6a5cbcd
commit
ba022a3e5a
@ -24,7 +24,7 @@ describe 'tuskar::db::postgresql' do
|
||||
req_params
|
||||
end
|
||||
|
||||
it { should contain_postgresql__server__db('tuskar').with(
|
||||
it { is_expected.to contain_postgresql__server__db('tuskar').with(
|
||||
:user => 'tuskar',
|
||||
:password => 'md532cc9d9d42efb508bc9d6267d873d63d'
|
||||
)}
|
||||
@ -47,7 +47,7 @@ describe 'tuskar::db::postgresql' do
|
||||
req_params
|
||||
end
|
||||
|
||||
it { should contain_postgresql__server__db('tuskar').with(
|
||||
it { is_expected.to contain_postgresql__server__db('tuskar').with(
|
||||
:user => 'tuskar',
|
||||
:password => 'md532cc9d9d42efb508bc9d6267d873d63d'
|
||||
)}
|
||||
|
@ -9,11 +9,11 @@ describe 'tuskar::ui' do
|
||||
|
||||
context 'with default parameters' do
|
||||
it 'installs tuskar-ui package' do
|
||||
should contain_package('tuskar-ui').with(
|
||||
is_expected.to contain_package('tuskar-ui').with(
|
||||
:name => platform_params[:ui_package_name],
|
||||
:ensure => 'present',
|
||||
)
|
||||
should_not contain_package('tuskar-ui-extras')
|
||||
is_expected.to_not contain_package('tuskar-ui-extras')
|
||||
end
|
||||
end
|
||||
|
||||
@ -22,11 +22,11 @@ describe 'tuskar::ui' do
|
||||
{ :extras => true }
|
||||
end
|
||||
it 'installs tuskar-ui and tuskar-ui-extras packages' do
|
||||
should contain_package('tuskar-ui').with(
|
||||
is_expected.to contain_package('tuskar-ui').with(
|
||||
:name => platform_params[:ui_package_name],
|
||||
:ensure => 'present',
|
||||
)
|
||||
should contain_package('tuskar-ui-extras').with(
|
||||
is_expected.to contain_package('tuskar-ui-extras').with(
|
||||
:name => platform_params[:ui_extras_package_name],
|
||||
:ensure => 'present',
|
||||
)
|
||||
@ -38,7 +38,7 @@ describe 'tuskar::ui' do
|
||||
{ :package_ensure => 'absent' }
|
||||
end
|
||||
it 'installs tuskar-ui and tuskar-ui-extras packages' do
|
||||
should contain_package('tuskar-ui').with(
|
||||
is_expected.to contain_package('tuskar-ui').with(
|
||||
:name => platform_params[:ui_package_name],
|
||||
:ensure => 'absent',
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user