From 1e06f1f76250a9c96b7484ee45ddb0d6d27de4af Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 11 Jul 2022 23:24:04 +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: I15addb494305b5576bc9a19078ededf962bc0dd7 --- spec/unit/type/aodh_api_uwsgi_config_spec.rb | 2 +- spec/unit/type/aodh_config_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/type/aodh_api_uwsgi_config_spec.rb b/spec/unit/type/aodh_api_uwsgi_config_spec.rb index 29c72208..2f5e9e1f 100644 --- a/spec/unit/type/aodh_api_uwsgi_config_spec.rb +++ b/spec/unit/type/aodh_api_uwsgi_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:aodh_api_uwsgi_config)' do expect(@aodh_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 @aodh_api_uwsgi_config[:value] = 'b ar' expect(@aodh_api_uwsgi_config[:value]).to eq('b ar') end diff --git a/spec/unit/type/aodh_config_spec.rb b/spec/unit/type/aodh_config_spec.rb index 47aaa32b..76fc6fce 100644 --- a/spec/unit/type/aodh_config_spec.rb +++ b/spec/unit/type/aodh_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:aodh_config)' do expect(@aodh_config[:value]).to eq(['bar']) end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @aodh_config[:value] = 'b ar' expect(@aodh_config[:value]).to eq(['b ar']) end