]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commitdiff
Fix wrong test description
authorTakashi Kajinami <tkajinam@redhat.com>
Mon, 11 Jul 2022 14:26:04 +0000 (23:26 +0900)
committerTakashi Kajinami <tkajinam@redhat.com>
Mon, 11 Jul 2022 14:26:04 +0000 (23:26 +0900)
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

spec/unit/type/ceilometer_config_spec.rb
spec/unit/type/ceilometer_rootwrap_config_spec.rb

index 6a6bd3a7d58d01b8b714ca96252097ff5318af0c..c21863b5110494529ea101aeb5a6d654e704f44f 100644 (file)
@@ -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
index 90743338aa7a8d17e6738346ec9a2699f2930c2d..ddb91a12c2d63e9925ee443ea842d00caad38521 100644 (file)
@@ -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