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:
parent
bbaaefa995
commit
970457f2c2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue