test/storage/cookie_storage_test.rb in verdict-0.16.0 vs test/storage/cookie_storage_test.rb in verdict-0.16.1

- old
+ new

@@ -4,10 +4,12 @@ require 'fake_app' class CookieStorageTest < Minitest::Test def setup @storage = Verdict::Storage::CookieStorage.new.tap do |s| - s.cookies = ActionDispatch::Cookies::CookieJar.new(nil) + request = mock() + request.stubs(:cookies_same_site_protection).returns(proc { :none }) + s.cookies = ActionDispatch::Cookies::CookieJar.new(request) end @experiment = Verdict::Experiment.new(:cookie_storage_test) do groups { group :all, 100 } storage @storage, store_unqualified: true end