diff --git a/spec/support/cookie_helper.rb b/spec/support/cookie_helper.rb index 9b94f6be4d..bbdafbfd24 100644 --- a/spec/support/cookie_helper.rb +++ b/spec/support/cookie_helper.rb @@ -4,7 +4,7 @@ module Spec module Support module Helpers def cookie_expires_value - @cookie_expired ||= Gem::Version.new(Rack.release) <= Gem::Version.new('2') ? Time.at(0).gmtime.rfc2822 : Time.at(0).httpdate + @cookie_expires_value ||= Gem::Version.new(Rack.release) <= Gem::Version.new('2') ? Time.at(0).gmtime.rfc2822 : Time.at(0).httpdate end def last_response_cookies