From: Takashi Kajinami Date: Mon, 11 Jul 2022 14:26:04 +0000 (+0900) Subject: Fix wrong test description X-Git-Tag: 21.0.0~8 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=962afdd17dab55fc0151343481ca86f5b3e13ee7;p=puppet-modules%2Fpuppet-ceilometer.git 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: I78750bdfd66785f822a37d724cd4f50eca8e0bab --- diff --git a/spec/unit/type/ceilometer_config_spec.rb b/spec/unit/type/ceilometer_config_spec.rb index 6a6bd3a..c21863b 100644 --- a/spec/unit/type/ceilometer_config_spec.rb +++ b/spec/unit/type/ceilometer_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:ceilometer_config)' do expect(@ceilometer_config[:value]).to eq(['bar']) end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @ceilometer_config[:value] = 'b ar' expect(@ceilometer_config[:value]).to eq(['b ar']) end diff --git a/spec/unit/type/ceilometer_rootwrap_config_spec.rb b/spec/unit/type/ceilometer_rootwrap_config_spec.rb index 9074333..ddb91a1 100644 --- a/spec/unit/type/ceilometer_rootwrap_config_spec.rb +++ b/spec/unit/type/ceilometer_rootwrap_config_spec.rb @@ -33,7 +33,7 @@ describe 'Puppet::Type.type(:ceilometer_rootwrap_config)' do expect(@ceilometer_rootwrap_config[:value]).to eq('bar') end - it 'should not accept a value with whitespace' do + it 'should accept a value with whitespace' do @ceilometer_rootwrap_config[:value] = 'b ar' expect(@ceilometer_rootwrap_config[:value]).to eq('b ar') end