From cef80e551b0be5e62bad63c8df3aad4085f26487 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Fri, 10 May 2019 22:36:04 +0100 Subject: [PATCH] Fix test errors and deprecations --- spec/spec_helper.rb | 1 + spec/unit/type/enman_repo_spec.rb | 2 ++ spec/unit/type/entropy_keywords_spec.rb | 2 ++ spec/unit/type/entropy_repo_spec.rb | 2 ++ 4 files changed, 7 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 93b25ec..0e733dc 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -26,6 +26,7 @@ default_fact_files.each do |f| end RSpec.configure do |c| + c.mock_with :mocha c.default_facts = default_facts c.before :each do # set to strictest setting for testing diff --git a/spec/unit/type/enman_repo_spec.rb b/spec/unit/type/enman_repo_spec.rb index 3427931..14f516d 100644 --- a/spec/unit/type/enman_repo_spec.rb +++ b/spec/unit/type/enman_repo_spec.rb @@ -1,3 +1,5 @@ +require 'spec_helper' + describe Puppet::Type.type(:enman_repo) do before(:each) do provider = stub 'provider' diff --git a/spec/unit/type/entropy_keywords_spec.rb b/spec/unit/type/entropy_keywords_spec.rb index 2f73b08..a8f10f1 100644 --- a/spec/unit/type/entropy_keywords_spec.rb +++ b/spec/unit/type/entropy_keywords_spec.rb @@ -1,3 +1,5 @@ +require 'spec_helper' + describe Puppet::Type.type(:entropy_keywords) do before(:each) do provider = stub 'provider' diff --git a/spec/unit/type/entropy_repo_spec.rb b/spec/unit/type/entropy_repo_spec.rb index cf37f22..89b5407 100644 --- a/spec/unit/type/entropy_repo_spec.rb +++ b/spec/unit/type/entropy_repo_spec.rb @@ -1,3 +1,5 @@ +require 'spec_helper' + describe Puppet::Type.type(:entropy_repo) do before(:each) do provider = stub 'provider'