Sha256: 29dcb3e56abc5fe7f8c2f28502ec6718eb5f18123106733aaf8ec1b7ec193964

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

require "spec_helper"

describe Http2::Response do
  it "should register content type" do
    Http2.new(host: "http2test.kaspernj.org") do |http|
      res = http.get("content_type_test.php")
      res.content_type.should eq "text/html"
    end
  end

  it "should register content length" do
    Http2.new(host: "http2test.kaspernj.org") do |http|
      res = http.get("content_type_test.php")
      res.content_length.should > 50
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
http2-0.0.29 spec/http2/response_spec.rb