From c94a41a7fa670c2fee7e0497f2f34c5a21be988b Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 15 Jul 2022 11:51:00 +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: Ibcd5596808085ecea19b42f953c01a252bf4f67c --- spec/unit/type/octavia_api_uwsgi_config_spec.rb | 2 +- spec/unit/type/octavia_config_spec.rb | 2 +- spec/unit/type/octavia_ovn_provider_config_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/unit/type/octavia_api_uwsgi_config_spec.rb b/spec/unit/type/octavia_api_uwsgi_config_spec.rb index d7c7e956..5a6ec0a8 100644 --- a/spec/unit/type/octavia_api_uwsgi_config_spec.rb +++ b/spec/unit/type/octavia_api_uwsgi_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:octavia_api_uwsgi_config)' do expect(@octavia_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 @octavia_api_uwsgi_config[:value] = 'b ar' expect(@octavia_api_uwsgi_config[:value]).to eq('b ar') end diff --git a/spec/unit/type/octavia_config_spec.rb b/spec/unit/type/octavia_config_spec.rb index 44cef141..975afcc9 100644 --- a/spec/unit/type/octavia_config_spec.rb +++ b/spec/unit/type/octavia_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:octavia_config)' do expect(@octavia_config[:value]).to eq(['bar']) end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @octavia_config[:value] = 'b ar' expect(@octavia_config[:value]).to eq(['b ar']) end diff --git a/spec/unit/type/octavia_ovn_provider_config_spec.rb b/spec/unit/type/octavia_ovn_provider_config_spec.rb index 744f2d1c..362627d1 100644 --- a/spec/unit/type/octavia_ovn_provider_config_spec.rb +++ b/spec/unit/type/octavia_ovn_provider_config_spec.rb @@ -32,7 +32,7 @@ describe 'Puppet::Type.type(:octavia_ovn_provider_config)' do expect(@octavia_ovn_provider_config[:value]).to eq('bar') end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @octavia_ovn_provider_config[:value] = 'b ar' expect(@octavia_ovn_provider_config[:value]).to eq('b ar') end