7
3
require 'puppet/network/handler'
8
4
require 'puppet/network/http'
9
5
require 'puppet/network/http/webrick'
7
describe Puppet::Network::HTTP::WEBrick, "after initializing", :unless => Puppet.features.microsoft_windows? do
12
8
it "should not be listening" do
13
9
Puppet::Network::HTTP::WEBrick.new.should_not be_listening
13
describe Puppet::Network::HTTP::WEBrick, "when turning on listening", :unless => Puppet.features.microsoft_windows? do
19
15
@mock_webrick = stub('webrick', :[] => {}, :listeners => [], :status => :Running)
20
16
[:mount, :start, :shutdown].each {|meth| @mock_webrick.stubs(meth)}