summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2009-12-15 17:44:41 -0800
committerJesse Wolfe <jes5199@gmail.com>2009-12-15 17:44:41 -0800
commita7fae4741cc3d266faa53c871bbb4a62b90f699c (patch)
tree045cc4fa11c54d685e60273e27a5506a5393e0de
parentb96b757f1d091130b06542856c5b5b3a683a8e39 (diff)
downloadpuppet-a7fae4741cc3d266faa53c871bbb4a62b90f699c.tar.gz
puppet-a7fae4741cc3d266faa53c871bbb4a62b90f699c.tar.xz
puppet-a7fae4741cc3d266faa53c871bbb4a62b90f699c.zip
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.
-rwxr-xr-xspec/unit/network/http/webrick.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/network/http/webrick.rb b/spec/unit/network/http/webrick.rb
index fca2e075e..b8163fef7 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