Skip to content

Commit

Permalink
Fix new year heisenbug
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Jan 1, 2010
1 parent 9790f0e commit db49b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/test/controller/cookie_test.rb
Expand Up @@ -155,7 +155,7 @@ def test_cookies_persist_throughout_request
def test_permanent_cookie def test_permanent_cookie
get :set_permanent_cookie get :set_permanent_cookie
assert_match /Jamie/, @response.headers["Set-Cookie"] assert_match /Jamie/, @response.headers["Set-Cookie"]
assert_match %r(#{20.years.from_now.year}), @response.headers["Set-Cookie"] assert_match %r(#{20.years.from_now.utc.year}), @response.headers["Set-Cookie"]
end end


def test_signed_cookie def test_signed_cookie
Expand All @@ -165,7 +165,7 @@ def test_signed_cookie


def test_permanent_signed_cookie def test_permanent_signed_cookie
get :set_permanent_signed_cookie get :set_permanent_signed_cookie
assert_match %r(#{20.years.from_now.year}), @response.headers["Set-Cookie"] assert_match %r(#{20.years.from_now.utc.year}), @response.headers["Set-Cookie"]
assert_equal 100, @controller.send(:cookies).signed[:remember_me] assert_equal 100, @controller.send(:cookies).signed[:remember_me]
end end


Expand Down

0 comments on commit db49b7d

Please sign in to comment.