diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-15 00:45:37 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-15 00:45:37 +0000 |
commit | 6aa423454d7c3926297426fc22d23c88531bd15a (patch) | |
tree | 6a3df62ec50ae32512880c618e13a56334b5da68 | |
parent | 63e421d82ac6d838f9b8b02d4a727bf6f783e7b6 (diff) | |
download | unicorn-6aa423454d7c3926297426fc22d23c88531bd15a.tar.gz |
It may return the previous second
-rw-r--r-- | test/unit/test_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_response.rb b/test/unit/test_response.rb index fb6edef..1c2707a 100644 --- a/test/unit/test_response.rb +++ b/test/unit/test_response.rb @@ -15,7 +15,7 @@ class ResponseTest < Test::Unit::TestCase include Unicorn::HttpResponse def test_httpdate - before = Time.now.to_i + before = Time.now.to_i - 1 str = httpdate assert_kind_of(String, str) middle = Time.parse(str).to_i |