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'