From 855f3bba8bb1c29ea1ec2dae471c90bec7786f01 Mon Sep 17 00:00:00 2001 From: Bobosila Victor Date: Fri, 24 Sep 2021 13:26:47 +0300 Subject: (MODULES-11197) Rubocop fixes --- spec/unit/provider/augeas/augeas_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'spec/unit') diff --git a/spec/unit/provider/augeas/augeas_spec.rb b/spec/unit/provider/augeas/augeas_spec.rb index 71d7c60..4750e7e 100644 --- a/spec/unit/provider/augeas/augeas_spec.rb +++ b/spec/unit/provider/augeas/augeas_spec.rb @@ -475,19 +475,19 @@ describe Puppet::Type.type(:augeas).provider(:augeas) do end describe 'performing is_numeric checks (#22617)' do it 'returns false for nil' do - expect(provider.is_numeric?(nil)).to eq(false) + expect(provider.numeric?(nil)).to eq(false) end it 'returns true for Integers' do - expect(provider.is_numeric?(9)).to eq(true) + expect(provider.numeric?(9)).to eq(true) end it 'returns true for numbers in Strings' do - expect(provider.is_numeric?('9')).to eq(true) + expect(provider.numeric?('9')).to eq(true) end it 'returns false for non-number Strings' do - expect(provider.is_numeric?('x9')).to eq(false) + expect(provider.numeric?('x9')).to eq(false) end it 'returns false for other types' do - expect(provider.is_numeric?([true])).to eq(false) + expect(provider.numeric?([true])).to eq(false) end end -- cgit v1.2.3