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: I07e423693b88b71d98f596dea18bcc0884092955
This commit is contained in:
Takashi Kajinami 2022-07-11 23:28:19 +09:00
parent 52f40f4a2e
commit 5aaacb2caf
2 changed files with 2 additions and 2 deletions

View File

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

View File

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