aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/net/http/httpheader/shared/size.rb
blob: e2b1e4c22b677d7066acb26c6fb7a674e7915d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
describe :net_httpheader_size, shared: true do
  before :each do
    @headers = NetHTTPHeaderSpecs::Example.new
  end

  it "returns the number of header entries in self" do
    @headers.send(@method).should eql(0)

    @headers["a"] = "b"
    @headers.send(@method).should eql(1)

    @headers["b"] = "b"
    @headers.send(@method).should eql(2)

    @headers["c"] = "c"
    @headers.send(@method).should eql(3)
  end
end