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: Ibcd5596808085ecea19b42f953c01a252bf4f67c
This commit is contained in:
Takashi Kajinami 2022-07-15 11:51:00 +09:00
parent aa83e0b86f
commit c94a41a7fa
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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