(MODULES-3983) Update parallel_tests for ruby 2.0.0
[puppet-modules/puppetlabs-apt.git] / spec / spec_helper.rb
index 46fe2371c96ac7301a50a8575c465fbdfab0ff88..9ae37b172941cfc5d206f6168c4dbab7748f48d7 100644 (file)
@@ -1,14 +1,16 @@
-require 'rubygems'
-require 'puppet'
-require 'rspec-puppet'
+#This file is generated by ModuleSync, do not edit.
+require 'puppetlabs_spec_helper/module_spec_helper'
 
-def param_value(subject, type, title, param)
-  subject.resource(type, title).send(:parameters)[param.to_sym]
+if Puppet.version.to_f >= 4.5
+  RSpec.configure do |c|
+    c.before :each do
+      Puppet.settings[:strict] = :error
+    end
+  end
 end
 
-fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures'))
-
-RSpec.configure do |c|
-  c.module_path = File.join(fixture_path, 'modules')
-  c.manifest_dir = File.join(fixture_path, 'manifests')
+# put local configuration and setup into spec_helper_local
+begin
+  require 'spec_helper_local'
+rescue LoadError
 end