Sha256: a1058d651a7218ee439dce7ad711887c5c354cc36c03316323799f52205ed0c4
Contents?: true
Size: 519 Bytes
Versions: 19
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' describe WEBrick::Cookie do describe '.parse_set_cookie' do it 'includes the httponly attribute' do str = "cookie2=val2; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Path=/; Domain=.foo.com; HttpOnly" WEBrick::Cookie.parse_set_cookie( str ).httponly.should be_true str = "cookie2=val2; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Path=/; Domain=.foo.com" WEBrick::Cookie.parse_set_cookie( str ).httponly.should be_false end end end
Version data entries
19 entries across 19 versions & 1 rubygems