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:
Takashi Kajinami 2022-07-11 23:26:33 +09:00
parent 7f011baa00
commit 8e33e54bdf
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:cinder_api_uwsgi_config)' do
expect(@cinder_api_uwsgi_config[:value]).to eq('bar')
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'
expect(@cinder_api_uwsgi_config[:value]).to eq('b ar')
end

View File

@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:cinder_config)' do
expect(@cinder_config[:value]).to eq(['bar'])
end
it 'should not accept a value with whitespace' do
it 'should accept a value with whitespace' do
@cinder_config[:value] = 'b ar'
expect(@cinder_config[:value]).to eq(['b ar'])
end

View File

@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:cinder_rootwrap_config)' do
expect(@cinder_rootwrap_config[:value]).to eq('bar')
end
it 'should not accept a value with whitespace' do
it 'should accept a value with whitespace' do
@cinder_rootwrap_config[:value] = 'b ar'
expect(@cinder_rootwrap_config[:value]).to eq('b ar')
end