summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-28 18:59:21 -0600
committerLuke Kanies <luke@madstop.com>2007-11-28 18:59:21 -0600
commit75647ee25f7dff39555becaa879edd1e391ac7d9 (patch)
treef44c3e2daaa18fad2ef28cb781b03facd5da542f
parent811fefa569d4ac960598dc06ffacec0c4e60832c (diff)
downloadpuppet-75647ee25f7dff39555becaa879edd1e391ac7d9.tar.gz
puppet-75647ee25f7dff39555becaa879edd1e391ac7d9.tar.xz
puppet-75647ee25f7dff39555becaa879edd1e391ac7d9.zip
Fixing a couple of tests that were failing on a different platform or with a different version of ruby
-rwxr-xr-xspec/unit/network/xmlrpc/client.rb2
-rwxr-xr-xspec/unit/ral/types/service.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/network/xmlrpc/client.rb b/spec/unit/network/xmlrpc/client.rb
index e20c66c25..b6ab4b367 100755
--- a/spec/unit/network/xmlrpc/client.rb
+++ b/spec/unit/network/xmlrpc/client.rb
@@ -14,7 +14,7 @@ describe Puppet::Network::XMLRPCClient, " when managing http instances" do
end
it "should enable ssl on the http instance" do
- Puppet::Network::XMLRPCClient.http_instance("me", 54321).use_ssl.should be_true
+ Puppet::Network::XMLRPCClient.http_instance("me", 54321).instance_variable_get("@use_ssl").should be_true
end
it "should set the read timeout" do
diff --git a/spec/unit/ral/types/service.rb b/spec/unit/ral/types/service.rb
index ee3d747a8..981d38a15 100755
--- a/spec/unit/ral/types/service.rb
+++ b/spec/unit/ral/types/service.rb
@@ -206,7 +206,7 @@ describe Puppet::Type::Service, "when changing the host" do
@service.property(:enable).expects(:insync?).returns(false)
@service.property(:enable).expects(:sync)
- @provider.stubs(:stop)
+ @service.provider.stubs(:stop)
@service.property(:ensure).sync
end