From e69a50afbe0c031833c4247a962cfda0b5996d78 Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Wed, 17 Oct 2007 11:50:34 -0500 Subject: Fix test which is conditional on mongrel installation. --- spec/unit/network/http.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/unit/network/http.rb b/spec/unit/network/http.rb index cb99d4d4c..a282b650a 100644 --- a/spec/unit/network/http.rb +++ b/spec/unit/network/http.rb @@ -12,8 +12,10 @@ describe Puppet::Network::HTTP do Puppet::Network::HTTP.server_class_by_type(:webrick).should be(Puppet::Network::HTTP::WEBrick) end - it "should return the mongrel HTTP server class when asked for a mongrel server" do - Puppet::Network::HTTP.server_class_by_type(:mongrel).should be(Puppet::Network::HTTP::Mongrel) + if Puppet.features.mongrel? + it "should return the mongrel HTTP server class when asked for a mongrel server" do + Puppet::Network::HTTP.server_class_by_type(:mongrel).should be(Puppet::Network::HTTP::Mongrel) + end end it "should fail to return the mongrel HTTP server class if mongrel is not available " do -- cgit