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: I773e1982437b8d3e0fb8cda26bf35f0e48521481
This commit is contained in:
Takashi Kajinami 2022-07-15 11:41:03 +09:00
parent 1a1b899275
commit 87e3112204
2 changed files with 2 additions and 2 deletions

View File

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

View File

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