summaryrefslogtreecommitdiff
path: root/spec/aliases/numeric_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/aliases/numeric_spec.rb')
-rw-r--r--spec/aliases/numeric_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/aliases/numeric_spec.rb b/spec/aliases/numeric_spec.rb
index 0e98bee..bc17f4f 100644
--- a/spec/aliases/numeric_spec.rb
+++ b/spec/aliases/numeric_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-if Puppet.version.to_f >= 4.5
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
describe 'test::numeric', type: :class do
describe 'accepts numerics' do
[