diff options
| author | Rick Bradley <rick@rickbradley.com> | 2007-10-16 15:52:41 -0500 |
|---|---|---|
| committer | Rick Bradley <rick@rickbradley.com> | 2007-10-16 15:52:41 -0500 |
| commit | 6cd0f371065da901d8cc3143d8859a389ca87582 (patch) | |
| tree | 2ffae608bfc8d88a6d48a85607c6ef83330f16bb /spec/unit/network/http/mongrel | |
| parent | 216dd8c47ea42338c2dee0bf6528cdd7e37e0028 (diff) | |
| download | puppet-6cd0f371065da901d8cc3143d8859a389ca87582.tar.gz puppet-6cd0f371065da901d8cc3143d8859a389ca87582.tar.xz puppet-6cd0f371065da901d8cc3143d8859a389ca87582.zip | |
Make it possible to run all tests even if mongrel isn't installed. Shouldn't "confine" produce some output when running spec? Who knows.
Diffstat (limited to 'spec/unit/network/http/mongrel')
| -rw-r--r-- | spec/unit/network/http/mongrel/rest.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/network/http/mongrel/rest.rb b/spec/unit/network/http/mongrel/rest.rb index 15ee06c7e..16fe94edb 100644 --- a/spec/unit/network/http/mongrel/rest.rb +++ b/spec/unit/network/http/mongrel/rest.rb @@ -7,6 +7,8 @@ require File.dirname(__FILE__) + '/../../../../spec_helper' require 'puppet/network/http' describe Puppet::Network::HTTP::MongrelREST, "when initializing" do + confine "Mongrel is not available" => Puppet.features.mongrel? + before do @mock_mongrel = mock('Mongrel server') @mock_mongrel.stubs(:register) @@ -49,6 +51,8 @@ describe Puppet::Network::HTTP::MongrelREST, "when initializing" do end describe Puppet::Network::HTTP::MongrelREST, "when receiving a request" do + confine "Mongrel is not available" => Puppet.features.mongrel? + before do @mock_request = mock('mongrel http request') @mock_response = mock('mongrel http response') |
