Fix wrong test description
The value with a white space should be accepted instead of being rejected. This change fixes the wrong test case description and makes sure the description explains what is actually tested. Change-Id: I05476d0d3d9cc7d732f67b5291d7854ab5a8abaa
This commit is contained in:
parent
7f011baa00
commit
8e33e54bdf
@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:cinder_api_uwsgi_config)' do
|
|||||||
expect(@cinder_api_uwsgi_config[:value]).to eq('bar')
|
expect(@cinder_api_uwsgi_config[:value]).to eq('bar')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should not accept a value with whitespace' do
|
it 'should accept a value with whitespace' do
|
||||||
@cinder_api_uwsgi_config[:value] = 'b ar'
|
@cinder_api_uwsgi_config[:value] = 'b ar'
|
||||||
expect(@cinder_api_uwsgi_config[:value]).to eq('b ar')
|
expect(@cinder_api_uwsgi_config[:value]).to eq('b ar')
|
||||||
end
|
end
|
||||||
|
@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:cinder_config)' do
|
|||||||
expect(@cinder_config[:value]).to eq(['bar'])
|
expect(@cinder_config[:value]).to eq(['bar'])
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should not accept a value with whitespace' do
|
it 'should accept a value with whitespace' do
|
||||||
@cinder_config[:value] = 'b ar'
|
@cinder_config[:value] = 'b ar'
|
||||||
expect(@cinder_config[:value]).to eq(['b ar'])
|
expect(@cinder_config[:value]).to eq(['b ar'])
|
||||||
end
|
end
|
||||||
|
@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:cinder_rootwrap_config)' do
|
|||||||
expect(@cinder_rootwrap_config[:value]).to eq('bar')
|
expect(@cinder_rootwrap_config[:value]).to eq('bar')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should not accept a value with whitespace' do
|
it 'should accept a value with whitespace' do
|
||||||
@cinder_rootwrap_config[:value] = 'b ar'
|
@cinder_rootwrap_config[:value] = 'b ar'
|
||||||
expect(@cinder_rootwrap_config[:value]).to eq('b ar')
|
expect(@cinder_rootwrap_config[:value]).to eq('b ar')
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user