From 970457f2c2e39f55cfdccb3ed651129408f9b08f Mon Sep 17 00:00:00 2001 From: Vinicius Baggio Date: Tue, 22 Feb 2011 15:41:23 -0300 Subject: [PATCH] Fixing test error when dealing with multiple time zones --- test/integration/rememberable_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/rememberable_test.rb b/test/integration/rememberable_test.rb index 199bab97..0fac2a59 100644 --- a/test/integration/rememberable_test.rb +++ b/test/integration/rememberable_test.rb @@ -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