Sha256: ce0309f17ff3562c28e1ce7d73a19c14027c18bd11f502e331d87e0e3c7889cd

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

require "spec_helper"

describe Http2::Cookie do
  include Helpers

  it "parses cookies and let them be read" do
    with_http do |http|
      http.get("cookie_test.rhtml")
      expect(http.cookies.length).to eq 2

      cookie = http.cookie("TestCookie")
      expect(cookie.name).to eq "TestCookie"
      expect(cookie.value).to eq "TestValue"
      expect(cookie.path).to eq "/"
      expect(cookie.expires).to be > Time.now
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
http2-0.0.36 spec/http2/cookies_spec.rb