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: Icc58f5c51b249564ab3cf3e1859c4dabde5857fc
This commit is contained in:
Takashi Kajinami 2022-07-15 11:48:36 +09:00
parent aa9b0aac05
commit fc7467334e
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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