Sha256: 05ddf0c68d6ebf0bccb347336e882ce6f6cb664a0679f008a94828ed31e11618

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

require "spec_helper"
require "support/adapter_lint"

begin
  describe Webmachine::Adapters::Mongrel do
    it_should_behave_like :adapter_lint do
      it "should set Server header" do
        response = client.request(Net::HTTP::Get.new("/test"))
        response["Server"].should match(/Webmachine/)
        response["Server"].should match(/Mongrel/)
      end
    end
  end
rescue LoadError
  warn "Platform is #{RUBY_PLATFORM}: skipping mongrel adapter spec."
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webmachine-1.2.0 spec/webmachine/adapters/mongrel_spec.rb