Skip to content

Commit bbc5149

Browse files
committed
Update Set-Cookie specs to match the date format set by newer rack versions
1 parent 043560a commit bbc5149

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/persistence/cookie_adapter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
it "puts multiple experiments in a single cookie" do
5353
subject["foo"] = "FOO"
5454
subject["bar"] = "BAR"
55-
expect(context.response.headers["Set-Cookie"]).to match(/\Asplit=%7B%22foo%22%3A%22FOO%22%2C%22bar%22%3A%22BAR%22%7D; path=\/; expires=[a-zA-Z]{3}, \d{2} [a-zA-Z]{3} \d{4} \d{2}:\d{2}:\d{2} -0000\Z/)
55+
expect(context.response.headers["Set-Cookie"]).to match(/\Asplit=%7B%22foo%22%3A%22FOO%22%2C%22bar%22%3A%22BAR%22%7D; path=\/; expires=[a-zA-Z]{3}, \d{2} [a-zA-Z]{3} \d{4} \d{2}:\d{2}:\d{2} [A-Z]{3}\Z/)
5656
end
5757

5858
it "ensure other added cookies are not overriden" do

0 commit comments

Comments
 (0)