From 353d931ec1b3210d5af8a7d522bd60f2dabc782f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 15 Jul 2022 11:44:06 +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: Ieaa303c47408fed231b2bbfc0c55b520ad63a3bf --- spec/unit/type/heat_api_cfn_uwsgi_config_spec.rb | 2 +- spec/unit/type/heat_api_uwsgi_config_spec.rb | 2 +- spec/unit/type/heat_config_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/unit/type/heat_api_cfn_uwsgi_config_spec.rb b/spec/unit/type/heat_api_cfn_uwsgi_config_spec.rb index 0b965f2e..c775a27e 100644 --- a/spec/unit/type/heat_api_cfn_uwsgi_config_spec.rb +++ b/spec/unit/type/heat_api_cfn_uwsgi_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:heat_api_cfn_uwsgi_config)' do expect(@heat_api_cfn_uwsgi_config[:value]).to eq('bar') end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @heat_api_cfn_uwsgi_config[:value] = 'b ar' expect(@heat_api_cfn_uwsgi_config[:value]).to eq('b ar') end diff --git a/spec/unit/type/heat_api_uwsgi_config_spec.rb b/spec/unit/type/heat_api_uwsgi_config_spec.rb index fa5c0de2..1b4ed2fc 100644 --- a/spec/unit/type/heat_api_uwsgi_config_spec.rb +++ b/spec/unit/type/heat_api_uwsgi_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:heat_api_uwsgi_config)' do expect(@heat_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 @heat_api_uwsgi_config[:value] = 'b ar' expect(@heat_api_uwsgi_config[:value]).to eq('b ar') end diff --git a/spec/unit/type/heat_config_spec.rb b/spec/unit/type/heat_config_spec.rb index 266fbafc..d2054d25 100644 --- a/spec/unit/type/heat_config_spec.rb +++ b/spec/unit/type/heat_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:heat_config)' do expect(@heat_config[:value]).to eq(['bar']) end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @heat_config[:value] = 'b ar' expect(@heat_config[:value]).to eq(['b ar']) end