Skip to content

Commit c2596dd

Browse files
Add a failing test
1 parent 1ac03a6 commit c2596dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/protocol/http/headers.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
["Set-Cookie", "hello=world"],
1414
["Accept", "*/*"],
1515
["set-cookie", "foo=bar"],
16-
["connection", "Keep-Alive"]
16+
["connection", "Keep-Alive"],
17+
["X-Foo", 1]
1718
]
1819
end
1920

@@ -29,7 +30,7 @@
2930

3031
with "#keys" do
3132
it "should return keys" do
32-
expect(headers.keys).to be == ["content-type", "set-cookie", "accept", "connection"]
33+
expect(headers.keys).to be == ["content-type", "set-cookie", "accept", "connection", "x-foo"]
3334
end
3435
end
3536

@@ -55,7 +56,8 @@
5556
"content-type" => "text/plain",
5657
"set-cookie" => ["hello=world", "foo=bar", "goodbye=world"],
5758
"accept" => ["*/*"],
58-
"connection" => ["keep-alive"]
59+
"connection" => ["keep-alive"],
60+
"x-foo" => ["1"]
5961
}
6062
end
6163
end

0 commit comments

Comments
 (0)