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: Ieaa303c47408fed231b2bbfc0c55b520ad63a3bf
This commit is contained in:
Takashi Kajinami 2022-07-15 11:44:06 +09:00
parent adb38d75b5
commit 353d931ec1
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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