From b8c8d1f24550da1fa9f8840dfe95fcfcb087a1e2 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 11 Jul 2022 23:25:21 +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: I0f7853c62b88ea423590f5c75eb47f7597f15a01 --- spec/unit/type/barbican_api_uwsgi_config_spec.rb | 2 +- spec/unit/type/barbican_config_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/type/barbican_api_uwsgi_config_spec.rb b/spec/unit/type/barbican_api_uwsgi_config_spec.rb index 6a393983..69785fac 100644 --- a/spec/unit/type/barbican_api_uwsgi_config_spec.rb +++ b/spec/unit/type/barbican_api_uwsgi_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:barbican_api_uwsgi_config)' do expect(@barbican_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 @barbican_api_uwsgi_config[:value] = 'b ar' expect(@barbican_api_uwsgi_config[:value]).to eq('b ar') end diff --git a/spec/unit/type/barbican_config_spec.rb b/spec/unit/type/barbican_config_spec.rb index 19dd6604..4c90e56a 100644 --- a/spec/unit/type/barbican_config_spec.rb +++ b/spec/unit/type/barbican_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:barbican_config)' do expect(@barbican_config[:value]).to eq(['bar']) end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @barbican_config[:value] = 'b ar' expect(@barbican_config[:value]).to eq(['b ar']) end