With the code below, the output is "Date is: ". Why? If I start the server and `curl` the URL, I get headers that include Last-Modified, yet I cannot retreive them from within the integration tests. What am I doing wrong?
require File.dirname(__FILE__) + '/../test_helper' class CacheTest < ActionController::IntegrationTest def test_caching get "/repos/#{@repos}/revisions" assert_response 200 date = headers['Last-Modified'] puts 'Date is: ' + date.inspect # ... end end
Thanks
n