Permalink
Browse files

Fix failing cookie store test

  • Loading branch information...
1 parent 40247a8 commit cf9c36834a8d11ef05da7bd7d2dce7c3e121501a @fcheung fcheung committed with lifo Dec 21, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/test/controller/cookie_test.rb
@@ -7,15 +7,15 @@ def authenticate
end
def authenticate_for_fourteen_days
- cookies["user_name"] = { "value" => "david", "expires" => Time.local(2005, 10, 10) }
+ cookies["user_name"] = { "value" => "david", "expires" => Time.utc(2005, 10, 10,5) }
end
def authenticate_for_fourteen_days_with_symbols
- cookies[:user_name] = { :value => "david", :expires => Time.local(2005, 10, 10) }
+ cookies[:user_name] = { :value => "david", :expires => Time.utc(2005, 10, 10,5) }
end
def set_multiple_cookies
- cookies["user_name"] = { "value" => "david", "expires" => Time.local(2005, 10, 10) }
+ cookies["user_name"] = { "value" => "david", "expires" => Time.utc(2005, 10, 10,5) }
cookies["login"] = "XJ-122"
end

0 comments on commit cf9c368

Please sign in to comment.