+1

On Tue, Dec 15, 2009 at 5:46 PM, Jesse Wolfe <[email protected]> wrote:
> Fixing #2877 introduced some spec failures, by using more of the webrick
> API than was mocked here.
>
> Signed-off-by: Jesse Wolfe <[email protected]>
> ---
>  spec/unit/network/http/webrick.rb |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> 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
> --
> 1.6.5
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-dev?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.


Reply via email to