X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Ffunctions%2Fsuffix_spec.rb;h=802d598f200cdd7a225bf8b9afc252a3cb838acd;hp=bbd1186d7d959cfeb1022b3772d3f6282ccb2cde;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/spec/functions/suffix_spec.rb b/3rdparty/modules/stdlib/spec/functions/suffix_spec.rb index bbd1186d7..802d598f2 100644 --- a/3rdparty/modules/stdlib/spec/functions/suffix_spec.rb +++ b/3rdparty/modules/stdlib/spec/functions/suffix_spec.rb @@ -17,21 +17,11 @@ describe 'suffix' do it { is_expected.to run.with_params(['one', 'two', 'three'], 'post').and_return(['onepost', 'twopost', 'threepost']) } it { is_expected.to run.with_params(['ỗńέ', 'ťשׂǿ', 'ŧҺř℮ə'], 'рổŝţ').and_return(['ỗńέрổŝţ', 'ťשׂǿрổŝţ', 'ŧҺř℮əрổŝţ']) } - it { - is_expected.to run.with_params({}).and_return({}) - } - it { - is_expected.to run.with_params('key1' => 'value1', 2 => 3).and_return('key1' => 'value1', '2' => 3) - } - it { - is_expected.to run.with_params({}, '').and_return({}) - } - it { - is_expected.to run.with_params({ 'key' => 'value' }, '').and_return('key' => 'value') - } - it { - is_expected.to run.with_params({ 'key' => 'value' }, 'post').and_return('keypost' => 'value') - } + it { is_expected.to run.with_params({}).and_return({}) } + it { is_expected.to run.with_params('key1' => 'value1', 2 => 3).and_return('key1' => 'value1', '2' => 3) } + it { is_expected.to run.with_params({}, '').and_return({}) } + it { is_expected.to run.with_params({ 'key' => 'value' }, '').and_return('key' => 'value') } + it { is_expected.to run.with_params({ 'key' => 'value' }, 'post').and_return('keypost' => 'value') } it { is_expected.to run \ .with_params({ 'key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3' }, 'post') \