From b4de25a6d10000ece0fd4f9aa0c5fcc49dbc8a42 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 15 Jul 2022 11:45:38 +0900 Subject: [PATCH] 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: I83de50edca5035b725ff57c79580d99fa3f6c3a5 --- spec/unit/type/magnum_api_uwsgi_config_spec.rb | 2 +- spec/unit/type/magnum_config_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/type/magnum_api_uwsgi_config_spec.rb b/spec/unit/type/magnum_api_uwsgi_config_spec.rb index ba71002..2c70867 100644 --- a/spec/unit/type/magnum_api_uwsgi_config_spec.rb +++ b/spec/unit/type/magnum_api_uwsgi_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:magnum_api_uwsgi_config)' do expect(@magnum_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 @magnum_api_uwsgi_config[:value] = 'b ar' expect(@magnum_api_uwsgi_config[:value]).to eq('b ar') end diff --git a/spec/unit/type/magnum_config_spec.rb b/spec/unit/type/magnum_config_spec.rb index 68bd3e3..6646648 100644 --- a/spec/unit/type/magnum_config_spec.rb +++ b/spec/unit/type/magnum_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:magnum_config)' do expect(@magnum_config[:value]).to eq(['bar']) end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @magnum_config[:value] = 'b ar' expect(@magnum_config[:value]).to eq(['b ar']) end