mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +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
|
||||
|
||||
def test_accessed_at
|
||||
orig = HTTP::Cookie.new(cookie_values)
|
||||
orig = HTTP::Cookie.new(cookie_values(:expires => nil))
|
||||
@jar.add(orig)
|
||||
|
||||
time = orig.accessed_at
|
||||
|
|
@ -585,8 +585,6 @@ module TestHTTPCookieJar
|
|||
|
||||
assert_equal time, cookie.accessed_at, "accessed_at is not updated by each()"
|
||||
|
||||
sleep 0.1
|
||||
|
||||
cookie, = @jar.cookies("http://rubyforge.org/")
|
||||
|
||||
assert_send [cookie.accessed_at, :>, time], "accessed_at is not updated by each(url)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue