summaryrefslogtreecommitdiffstats
path: root/spec/unit/network/client/master.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/network/client/master.rb')
-rwxr-xr-xspec/unit/network/client/master.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/unit/network/client/master.rb b/spec/unit/network/client/master.rb
index 7bf755d88..c0ad7562f 100755
--- a/spec/unit/network/client/master.rb
+++ b/spec/unit/network/client/master.rb
@@ -36,30 +36,6 @@ describe Puppet::Network::Client::Master, " when retrieving the catalog" do
proc { @client.getconfig }.should raise_error(Puppet::Network::ClientError)
end
- it "should use the cached catalog if it is up to date" do
- file = "/path/to/cachefile"
- @client.stubs(:cachefile).returns(file)
- FileTest.expects(:exist?).with(file).returns(true)
- @client.expects(:fresh?).with(@facts).returns true
- @client.class.stubs(:facts).returns(@facts)
- @client.expects(:use_cached_config).returns(true)
- Puppet.stubs(:info)
-
- @client.getconfig
- end
-
- it "should log that the catalog does not need a recompile" do
- file = "/path/to/cachefile"
- @client.stubs(:cachefile).returns(file)
- FileTest.stubs(:exist?).with(file).returns(true)
- @client.stubs(:fresh?).with(@facts).returns true
- @client.stubs(:use_cached_config).returns(true)
- @client.class.stubs(:facts).returns(@facts)
- Puppet.expects(:info).with { |m| m.include?("up to date") }
-
- @client.getconfig
- end
-
it "should retrieve plugins if :pluginsync is enabled" do
file = "/path/to/cachefile"
@client.stubs(:cachefile).returns(file)
@@ -69,7 +45,6 @@ describe Puppet::Network::Client::Master, " when retrieving the catalog" do
@client.expects(:getplugins)
@client.stubs(:get_actual_config).returns(nil)
FileTest.stubs(:exist?).with(file).returns(true)
- @client.stubs(:fresh?).with(@facts).returns true
@client.stubs(:use_cached_config).returns(true)
@client.class.stubs(:facts).returns(@facts)
@client.getconfig