[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1601-gf8c1b08
Jesse Wolfe
jes5199 at gmail.com
Fri Jan 15 09:07:47 UTC 2010
The following commit has been merged in the upstream branch:
commit a7fae4741cc3d266faa53c871bbb4a62b90f699c
Author: Jesse Wolfe <jes5199 at gmail.com>
Date: Tue Dec 15 17:44:41 2009 -0800
Fix 2936 Insufficient mocks for webrick in spec/unit/network/http/webrick.rb
Fixing #2877 introduced some spec failures, by using more of the webrick
API than was mocked here.
diff --git a/spec/unit/network/http/webrick.rb b/spec/unit/network/http/webrick.rb
index fca2e07..b8163fe 100755
--- a/spec/unit/network/http/webrick.rb
+++ b/spec/unit/network/http/webrick.rb
@@ -15,7 +15,7 @@ end
describe Puppet::Network::HTTP::WEBrick, "when turning on listening" do
before do
- @mock_webrick = stub('webrick', :[] => {}, :listeners => [])
+ @mock_webrick = stub('webrick', :[] => {}, :listeners => [], :status => :Running)
[:mount, :start, :shutdown].each {|meth| @mock_webrick.stubs(meth)}
WEBrick::HTTPServer.stubs(:new).returns(@mock_webrick)
@server = Puppet::Network::HTTP::WEBrick.new
@@ -162,7 +162,7 @@ end
describe Puppet::Network::HTTP::WEBrick, "when turning off listening" do
before do
- @mock_webrick = stub('webrick', :[] => {}, :listeners => [])
+ @mock_webrick = stub('webrick', :[] => {}, :listeners => [], :status => :Running)
[:mount, :start, :shutdown].each {|meth| @mock_webrick.stubs(meth)}
WEBrick::HTTPServer.stubs(:new).returns(@mock_webrick)
@server = Puppet::Network::HTTP::WEBrick.new
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list