On Thu, 23 Sep 2010 14:24:43 -0700, Jeff McCune wrote:
> 
> Running rake spec, I was getting an undefined constant WEBRick error
> message.  Adding the require line to the rest spec alleviates the
> problem.
> 
> Signed-off-by: Jeff McCune <j...@puppetlabs.com>
> ---
>  spec/integration/indirector/report/rest_spec.rb |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/spec/integration/indirector/report/rest_spec.rb 
> b/spec/integration/indirector/report/rest_spec.rb
> index fdc2189..6e2020a 100644
> --- a/spec/integration/indirector/report/rest_spec.rb
> +++ b/spec/integration/indirector/report/rest_spec.rb
> @@ -4,6 +4,7 @@ Dir.chdir(File.dirname(__FILE__)) { (s = lambda { |f| 
> File.exist?(f) ? require(f
>  
>  require 'puppet/transaction/report'
>  require 'puppet/network/server'
> +require 'webrick'
>  require 'puppet/network/http/webrick/rest'
>  
>  describe "Report REST Terminus" do
> -- 
> 1.7.0.6
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Developers" group.
> To post to this group, send email to puppet-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-dev+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-dev?hl=en.
> 

+1, running this spec on its own fails for me, too, without this patch
(and succeeds with it).

-- 
Jacob Helwig

Attachment: signature.asc
Description: Digital signature

Reply via email to