Sha256: 62f48835c16f8b8a009ca9b2489c5c0564c8ff01a62beb492743665c8fd41395

Contents?: true

Size: 349 Bytes

Versions: 5

Compression:

Stored size: 349 Bytes

Contents

describe UnderOS::HTTP::Cookies do
  before do
    @cookies = UnderOS::HTTP::Cookies.new({a: 1, b: true}, "http://test.com")
  end

  it "allows to export them in a string" do
    @cookies.to_s.should == "a=1; b=true"
  end

  it "allows to export them into an HTTP header hash" do
    @cookies.headers.should == {"Cookie"=>"a=1; b=true"}
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
under-os-http-1.4.0 spec/under_os/http/cookies_spec.rb
under-os-1.3.0 spec/lib/under_os/http/cookies_spec.rb
under-os-1.2.1 spec/lib/under_os/http/cookies_spec.rb
under-os-1.2.0 spec/lib/under_os/http/cookies_spec.rb
under-os-1.1.0 spec/lib/under_os/http/cookies_spec.rb