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: I15addb494305b5576bc9a19078ededf962bc0dd7
This commit is contained in:
Takashi Kajinami 2022-07-11 23:24:04 +09:00
parent 8b29e4b5ab
commit 1e06f1f762
2 changed files with 2 additions and 2 deletions

View File

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

View File

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