File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 67
67
it "puts multiple experiments in a single cookie" do
68
68
subject [ "foo" ] = "FOO"
69
69
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 / )
71
71
end
72
72
73
73
it "ensure other added cookies are not overriden" do
74
74
context . response . set_cookie "dummy" , "wow"
75
75
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=/ )
78
78
end
79
79
end
80
80
You can’t perform that action at this time.
0 commit comments