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: I4804617c448e3ea8f65e8b971b1cafcde0a1d321
This commit is contained in:
Takashi Kajinami 2022-07-15 11:49:48 +09:00
parent 903101a17e
commit 2a023a76bc
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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