mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
MozillaStore saves timestamps in seconds, so use a session cookie for testing.
This commit is contained in:
parent
9fec000a29
commit
6fcc298b80
1 changed files with 1 additions and 3 deletions
|
|
@ -574,7 +574,7 @@ module TestHTTPCookieJar
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_accessed_at
|
def test_accessed_at
|
||||||
orig = HTTP::Cookie.new(cookie_values)
|
orig = HTTP::Cookie.new(cookie_values(:expires => nil))
|
||||||
@jar.add(orig)
|
@jar.add(orig)
|
||||||
|
|
||||||
time = orig.accessed_at
|
time = orig.accessed_at
|
||||||
|
|
@ -585,8 +585,6 @@ module TestHTTPCookieJar
|
||||||
|
|
||||||
assert_equal time, cookie.accessed_at, "accessed_at is not updated by each()"
|
assert_equal time, cookie.accessed_at, "accessed_at is not updated by each()"
|
||||||
|
|
||||||
sleep 0.1
|
|
||||||
|
|
||||||
cookie, = @jar.cookies("http://rubyforge.org/")
|
cookie, = @jar.cookies("http://rubyforge.org/")
|
||||||
|
|
||||||
assert_send [cookie.accessed_at, :>, time], "accessed_at is not updated by each(url)"
|
assert_send [cookie.accessed_at, :>, time], "accessed_at is not updated by each(url)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue