Commit cef7f302 authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

fix time format on If-Modified-Since test

parent 31c5d1b6
require File.expand_path('base_test_case', File.dirname(__FILE__))
class TestPublisher < Test::Unit::TestCase
class TestSubscriber < Test::Unit::TestCase
include BaseTestCase
def config_test_accepted_methods
......@@ -506,7 +506,7 @@ class TestPublisher < Test::Unit::TestCase
t = Time.now
t = t - 20
headers = headers.merge({'If-Modified-Since' => t.utc.strftime("%a, %e %b %Y %T %Z")})
headers = headers.merge({'If-Modified-Since' => t.utc.strftime("%a, %d %b %Y %T %Z")})
response = ""
EventMachine.run {
......@@ -573,7 +573,7 @@ class TestPublisher < Test::Unit::TestCase
t = Time.now
t = t - 20
headers = headers.merge({'If-Modified-Since' => t.utc.strftime("%a, %e %b %Y %T %Z")})
headers = headers.merge({'If-Modified-Since' => t.utc.strftime("%a, %d %b %Y %T %Z")})
response = ""
EventMachine.run {
......@@ -892,5 +892,4 @@ class TestPublisher < Test::Unit::TestCase
add_test_timeout
}
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment