Fix rspec 3.x syntax

- Convert 'should' keyword to 'is_expected.to'.

Change-Id: Ifb826897231c1adfbc672bf94762be4a1ad247f0
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud 2015-09-10 12:06:15 +02:00
parent 7f09ae46c1
commit 883f487220

View File

@ -58,7 +58,7 @@ describe 'ironic::bifrost' do
end
it 'should clone with vcsrepo bifrost repo with master branch' do
should contain_vcsrepo('/opt/stack/bifrost').with(
is_expected.to contain_vcsrepo('/opt/stack/bifrost').with(
'ensure' => 'present',
'provider' => 'git',
'revision' => 'master',
@ -67,13 +67,13 @@ describe 'ironic::bifrost' do
end
it 'should contain folder /etc/bifrost' do
should contain_file('/etc/bifrost').with(
is_expected.to contain_file('/etc/bifrost').with(
'ensure' => 'directory',
)
end
it 'should contain file /etc/bifrost/bifrost_global_vars' do
should contain_file('/etc/bifrost/bifrost_global_vars').with(
is_expected.to contain_file('/etc/bifrost/bifrost_global_vars').with(
'ensure' => 'present',
'require' => 'File[/etc/bifrost]',
'content' => /ironic_url/,
@ -81,7 +81,7 @@ describe 'ironic::bifrost' do
end
it 'should contain file /etc/bifrost/baremetal.json' do
should contain_file('/etc/bifrost/baremetal.json').with(
is_expected.to contain_file('/etc/bifrost/baremetal.json').with(
'ensure' => 'present',
'require' => 'File[/etc/bifrost]',
'content' => /test/,