Sha256: e72b369bc67821b492a3d61a8c2f32abeef5b817c8d73d9009f5918da49d0faa

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

require "spec_helper"
require "support/adapter_lint"

describe Webmachine::Adapters::WEBrick 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(/WEBrick/)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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