Sha256: e2e0d868fe2ddd0c03a8a4cb85c3039b3c37b37e1cb8bca1e68de0fd2e45222e
Contents?: true
Size: 446 Bytes
Versions: 4
Compression:
Stored size: 446 Bytes
Contents
require "spec_helper" describe Http2 do include Helpers it "should parse 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
http2-0.0.35 | spec/http2/cookies_spec.rb |
http2-0.0.34 | spec/http2/cookies_spec.rb |
http2-0.0.33 | spec/http2/cookies_spec.rb |
http2-0.0.32 | spec/http2/cookies_spec.rb |