spec/spec_helper.rb in puppet-debugger-0.6.1 vs spec/spec_helper.rb in puppet-debugger-0.7.0
- old
+ new
@@ -1,6 +1,7 @@
# frozen_string_literal: true
+
require 'simplecov'
require_relative '../lib/puppet-debugger'
require 'yaml'
ENV['COVERAGE'] = 'true'
@@ -55,8 +56,14 @@
def supports_type_function?
Gem::Version.new(Puppet.version) >= Gem::Version.new('4.0')
end
+def supports_datatypes?
+ Gem::Version.new(Puppet.version) >= Gem::Version.new('4.5')
+end
+
+
RSpec.configure do |config|
config.filter_run_excluding native_functions: !supports_native_functions?
+ RSpec::Expectations.configuration.on_potential_false_positives = :nothing
end