diff options
author | Markus Roberts <Markus@reality.com> | 2010-06-28 16:32:11 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-06-28 16:32:11 -0700 |
commit | 9ceb4540a567b0a9de85af5397df4a292303a9c3 (patch) | |
tree | 30d1e1601888381baaaa14bfc5ee7246fd5c78e8 /spec/unit/network/http_spec.rb | |
parent | 85638cf427fe9b35d3e3b0fa4ce919c5806c60d3 (diff) | |
download | puppet-9ceb4540a567b0a9de85af5397df4a292303a9c3.tar.gz puppet-9ceb4540a567b0a9de85af5397df4a292303a9c3.tar.xz puppet-9ceb4540a567b0a9de85af5397df4a292303a9c3.zip |
[#3994-part 2] rename integration tests to *_spec.rb
Some spec files like active_record.rb had names that would confuse the
load path and get loaded instead of the intended implentation when the
spec was run from the same directory as the file.
Author: Matt Robinson <matt@puppetlabs.com>
Date: Fri Jun 11 15:29:33 2010 -0700
Diffstat (limited to 'spec/unit/network/http_spec.rb')
-rwxr-xr-x | spec/unit/network/http_spec.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/unit/network/http_spec.rb b/spec/unit/network/http_spec.rb deleted file mode 100755 index 220726788..000000000 --- a/spec/unit/network/http_spec.rb +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env ruby -# -# Created by Rick Bradley on 2007-10-03. -# Copyright (c) 2007. All rights reserved. - -require File.dirname(__FILE__) + '/../../spec_helper' - -require 'puppet/network/http' - -describe Puppet::Network::HTTP do - it "should return the webrick HTTP server class when asked for a webrick server" do - Puppet::Network::HTTP.server_class_by_type(:webrick).should be(Puppet::Network::HTTP::WEBrick) - end - - describe "when asked for a mongrel server" do - if Puppet.features.mongrel? - it "should return the mongrel server class" do - Puppet::Network::HTTP.server_class_by_type(:mongrel).should be(Puppet::Network::HTTP::Mongrel) - end - else - it "should fail" do - lambda { Puppet::Network::HTTP.server_class_by_type(:mongrel) }.should raise_error(ArgumentError) - end - end - end - - it "should fail to return the mongrel HTTP server class if mongrel is not available " do - Puppet.features.expects(:mongrel?).returns(false) - Proc.new { Puppet::Network::HTTP.server_class_by_type(:mongrel) }.should raise_error(ArgumentError) - end - - it "should return an error when asked for an unknown server" do - Proc.new { Puppet::Network::HTTP.server_class_by_type :foo }.should raise_error(ArgumentError) - end -end |