diff options
| author | Rick Bradley <rick@rickbradley.com> | 2007-10-16 11:13:17 -0500 |
|---|---|---|
| committer | Rick Bradley <rick@rickbradley.com> | 2007-10-16 11:13:17 -0500 |
| commit | b8c877c121f6b376cd44b13cb90d69c41d0fb004 (patch) | |
| tree | 703a7a66f7d54618fb001e5be6b003dcc0900796 /spec/unit/network/http/webrick.rb | |
| parent | 3c370b3570d39c18799085793e083898cda72e68 (diff) | |
| download | puppet-b8c877c121f6b376cd44b13cb90d69c41d0fb004.tar.gz puppet-b8c877c121f6b376cd44b13cb90d69c41d0fb004.tar.xz puppet-b8c877c121f6b376cd44b13cb90d69c41d0fb004.zip | |
Registration now built for {webrick,mongrel} REST handlers.
Diffstat (limited to 'spec/unit/network/http/webrick.rb')
| -rw-r--r-- | spec/unit/network/http/webrick.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/network/http/webrick.rb b/spec/unit/network/http/webrick.rb index 81b2a0fa9..9ba04f164 100644 --- a/spec/unit/network/http/webrick.rb +++ b/spec/unit/network/http/webrick.rb @@ -17,6 +17,7 @@ describe Puppet::Network::HTTP::WEBrick, "when turning on listening" do Puppet.stubs(:start) Puppet.stubs(:newservice) @mock_webrick = mock('webrick') + @mock_webrick.stubs(:mount) WEBrick::HTTPServer.stubs(:new).returns(@mock_webrick) @server = Puppet::Network::HTTP::WEBrick.new @listen_params = { :address => "127.0.0.1", :port => 31337, :handlers => [ :node, :configuration ], :protocols => [ :rest, :xmlrpc ] } @@ -94,6 +95,7 @@ describe Puppet::Network::HTTP::WEBrick, "when turning off listening" do Puppet.stubs(:start) Puppet.stubs(:newservice) @mock_webrick = mock('webrick') + @mock_webrick.stubs(:mount) WEBrick::HTTPServer.stubs(:new).returns(@mock_webrick) @server = Puppet::Network::HTTP::WEBrick.new @server.stubs(:shutdown) |
