1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Fixing test error when dealing with multiple time zones

This commit is contained in:
Vinicius Baggio 2011-02-22 15:41:23 -03:00
parent bbaaefa995
commit 970457f2c2

View file

@ -30,7 +30,7 @@ class RememberMeTest < ActionController::IntegrationTest
def cookie_expires(key)
cookie = response.headers["Set-Cookie"].split("\n").grep(/^#{key}/).first
expires = cookie.split(";").map(&:strip).grep(/^expires=/).first
Time.parse(expires)
Time.parse(expires).utc
end
test 'do not remember the user if he has not checked remember me option' do