diff options
| author | Rick Bradley <rick@rickbradley.com> | 2007-10-17 11:50:34 -0500 |
|---|---|---|
| committer | Rick Bradley <rick@rickbradley.com> | 2007-10-17 11:50:34 -0500 |
| commit | e69a50afbe0c031833c4247a962cfda0b5996d78 (patch) | |
| tree | bf62cd034bc500400ca3ab5eb66a2422e1fe9814 /spec/unit | |
| parent | d2b891f6e3b1460602a0056b1b9dc85028c989e1 (diff) | |
| download | puppet-e69a50afbe0c031833c4247a962cfda0b5996d78.tar.gz puppet-e69a50afbe0c031833c4247a962cfda0b5996d78.tar.xz puppet-e69a50afbe0c031833c4247a962cfda0b5996d78.zip | |
Fix test which is conditional on mongrel installation.
Diffstat (limited to 'spec/unit')
| -rw-r--r-- | spec/unit/network/http.rb | 6 |
1 files 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 |
