Sha256: 05997a1e3091a570b42c6bdf7401685a33d455fda3eb63462224b8f48e88b068

Contents?: true

Size: 530 Bytes

Versions: 11

Compression:

Stored size: 530 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"
            expect(WEBrick::Cookie.parse_set_cookie( str ).httponly).to be_truthy

            str = "cookie2=val2; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Path=/; Domain=.foo.com"
            expect(WEBrick::Cookie.parse_set_cookie( str ).httponly).to be_falsey
        end
    end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/arachni/ruby/webrick_spec.rb
arachni-1.6.1.2 spec/arachni/ruby/webrick_spec.rb
arachni-1.6.1.1 spec/arachni/ruby/webrick_spec.rb
arachni-1.6.1 spec/arachni/ruby/webrick_spec.rb
arachni-1.6.0 spec/arachni/ruby/webrick_spec.rb
arachni-1.5.1 spec/arachni/ruby/webrick_spec.rb
arachni-1.5 spec/arachni/ruby/webrick_spec.rb
arachni-1.4 spec/arachni/ruby/webrick_spec.rb
arachni-1.3.2 spec/arachni/ruby/webrick_spec.rb
arachni-1.3.1 spec/arachni/ruby/webrick_spec.rb
arachni-1.3 spec/arachni/ruby/webrick_spec.rb