summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2010-06-15 15:33:01 -0700
committerMarkus Roberts <Markus@reality.com>2010-06-24 16:12:03 -0700
commitf95169b144f7c549b6dec197942c85a62ebd047c (patch)
treeec6efeee233a4496eb8e6987a6685edac131a43e
parentb5572aecf608f19954e560ffaa900baf10d2528d (diff)
downloadpuppet-f95169b144f7c549b6dec197942c85a62ebd047c.tar.gz
puppet-f95169b144f7c549b6dec197942c85a62ebd047c.tar.xz
puppet-f95169b144f7c549b6dec197942c85a62ebd047c.zip
[#4006] Fix test failures caused by reverting ticket 2890
When Markus reverted changes made by 2890 he reintroduced a method certificate_matches_key? that then caused failures in network/xmlrpc/client.rb. I just stubbed that method to return true since the failing tests weren't trying to test that methods behavior. Reviewed-by: Markus Roberts
-rwxr-xr-xspec/unit/network/xmlrpc/client_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/network/xmlrpc/client_spec.rb b/spec/unit/network/xmlrpc/client_spec.rb
index 328688bae..1b97583a7 100755
--- a/spec/unit/network/xmlrpc/client_spec.rb
+++ b/spec/unit/network/xmlrpc/client_spec.rb
@@ -5,9 +5,9 @@ Dir.chdir(File.dirname(__FILE__)) { (s = lambda { |f| File.exist?(f) ? require(f
describe Puppet::Network::XMLRPCClient do
describe "when performing the rpc call" do
before do
+ Puppet::SSL::Host.any_instance.stubs(:certificate_matches_key?).returns true
@client = Puppet::Network::Client.report.xmlrpc_client.new
@client.stubs(:call).returns "foo"
-
end
it "should call the specified namespace and method, with the specified arguments" do