aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBobosila Victor <vbobosila1@gmail.com>2021-09-24 13:26:47 +0300
committerBobosila Victor <vbobosila1@gmail.com>2021-09-30 14:30:05 +0300
commit855f3bba8bb1c29ea1ec2dae471c90bec7786f01 (patch)
tree5ff1f5bbd08e7d556439df0f18756f10aeb34bf3 /spec
parentec516a229afbedb0eefe401a8eefecc27004f6ac (diff)
downloadpuppet-augeas_core-855f3bba8bb1c29ea1ec2dae471c90bec7786f01.tar.gz
puppet-augeas_core-855f3bba8bb1c29ea1ec2dae471c90bec7786f01.tar.bz2
(MODULES-11197) Rubocop fixes
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/augeas/augeas_spec.rb10
1 files changed, 5 insertions, 5 deletions
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