File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767 it "puts multiple experiments in a single cookie" do
6868 subject [ "foo" ] = "FOO"
6969 subject [ "bar" ] = "BAR"
70- expect ( context . response . headers [ "Set-Cookie" ] ) . to match ( /\A split=%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 / )
70+ expect ( Array ( context . response . headers [ "Set-Cookie" ] ) ) . to include ( /\A split=%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 / )
7171 end
7272
7373 it "ensure other added cookies are not overriden" do
7474 context . response . set_cookie "dummy" , "wow"
7575 subject [ "foo" ] = "FOO"
76- expect ( context . response . headers [ "Set-Cookie" ] ) . to include ( " dummy=wow" )
77- expect ( context . response . headers [ "Set-Cookie" ] ) . to include ( " split=" )
76+ expect ( Array ( context . response . headers [ "Set-Cookie" ] ) ) . to include ( / dummy=wow/ )
77+ expect ( Array ( context . response . headers [ "Set-Cookie" ] ) ) . to include ( / split=/ )
7878 end
7979 end
8080
You can’t perform that action at this time.
0 commit comments