From 1f48d6892666dec67d316b6dd78bab09e181d35b Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Thu, 1 Jul 2010 17:12:55 -0700 Subject: maint: fix stub failures in report_spec.rb Puppet::Util::Storage was trying to create state.yaml during unrelated specs. --- spec/unit/transaction/report_spec.rb | 4 ++++ spec/unit/type/package_spec.rb | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'spec/unit') diff --git a/spec/unit/transaction/report_spec.rb b/spec/unit/transaction/report_spec.rb index 4f3c90d88..4b9e06cad 100755 --- a/spec/unit/transaction/report_spec.rb +++ b/spec/unit/transaction/report_spec.rb @@ -5,6 +5,10 @@ require File.dirname(__FILE__) + '/../../spec_helper' require 'puppet/transaction/report' describe Puppet::Transaction::Report do + before do + Puppet::Util::Storage.stubs(:store) + end + it "should set its host name to the certname" do Puppet.settings.expects(:value).with(:certname).returns "myhost" Puppet::Transaction::Report.new.host.should == "myhost" diff --git a/spec/unit/type/package_spec.rb b/spec/unit/type/package_spec.rb index 7cbd76aa7..02f3f9fbd 100755 --- a/spec/unit/type/package_spec.rb +++ b/spec/unit/type/package_spec.rb @@ -7,7 +7,6 @@ describe Puppet::Type.type(:package) do Puppet::Util::Storage.stubs(:store) end - it "should have an :installable feature that requires the :install method" do Puppet::Type.type(:package).provider_feature(:installable).methods.should == [:install] end -- cgit