From 8e33e54bdfc905f3d27b30d9b7f67ac45b653321 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 11 Jul 2022 23:26:33 +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: I05476d0d3d9cc7d732f67b5291d7854ab5a8abaa --- spec/unit/type/cinder_api_uwsgi_config_spec.rb | 2 +- spec/unit/type/cinder_config_spec.rb | 2 +- spec/unit/type/cinder_rootwrap_config_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/unit/type/cinder_api_uwsgi_config_spec.rb b/spec/unit/type/cinder_api_uwsgi_config_spec.rb index 29dc2791..61ca2cb9 100644 --- a/spec/unit/type/cinder_api_uwsgi_config_spec.rb +++ b/spec/unit/type/cinder_api_uwsgi_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:cinder_api_uwsgi_config)' do expect(@cinder_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 @cinder_api_uwsgi_config[:value] = 'b ar' expect(@cinder_api_uwsgi_config[:value]).to eq('b ar') end diff --git a/spec/unit/type/cinder_config_spec.rb b/spec/unit/type/cinder_config_spec.rb index 54fb7526..c27393ba 100644 --- a/spec/unit/type/cinder_config_spec.rb +++ b/spec/unit/type/cinder_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:cinder_config)' do expect(@cinder_config[:value]).to eq(['bar']) end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @cinder_config[:value] = 'b ar' expect(@cinder_config[:value]).to eq(['b ar']) end diff --git a/spec/unit/type/cinder_rootwrap_config_spec.rb b/spec/unit/type/cinder_rootwrap_config_spec.rb index fb479c65..bd457029 100644 --- a/spec/unit/type/cinder_rootwrap_config_spec.rb +++ b/spec/unit/type/cinder_rootwrap_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:cinder_rootwrap_config)' do expect(@cinder_rootwrap_config[:value]).to eq('bar') end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @cinder_rootwrap_config[:value] = 'b ar' expect(@cinder_rootwrap_config[:value]).to eq('b ar') end